Skip to content

Commit 5c415fb

Browse files
committed
Use snatch from repo
1 parent f7a979f commit 5c415fb

File tree

4 files changed

+13
-1586
lines changed

4 files changed

+13
-1586
lines changed

oup.sublime-project

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@
6767
},
6868
{
6969
"name": "oup_speed_benchmark",
70-
"shell_cmd": "make -j12 oup_speed_benchmark",
70+
"shell_cmd": "make -j12 oup_speed_benchmark"
71+
},
72+
{
73+
"name": "snatch",
74+
"shell_cmd": "make -j12 snatch"
7175
},
7276
],
7377
"working_dir": "$folder/build",

tests/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ function(add_platform_definitions TARGET)
2929
endif()
3030
endfunction()
3131

32+
include(FetchContent)
33+
34+
FetchContent_Declare(snatch
35+
GIT_REPOSITORY https://github.com/cschreib/snatch.git
36+
GIT_TAG 3fe53311beb01595e7502d3990dc5a1569b006b8)
37+
FetchContent_MakeAvailable(snatch)
38+
3239
set(RUNTIME_TEST_FILES
33-
${PROJECT_SOURCE_DIR}/tests/snatch.cpp
3440
${PROJECT_SOURCE_DIR}/tests/tests_common.cpp
3541
${PROJECT_SOURCE_DIR}/tests/memory_tracker.cpp
3642
${PROJECT_SOURCE_DIR}/tests/runtime_tests_owner_misc.cpp
@@ -55,9 +61,8 @@ set(RUNTIME_TEST_FILES
5561

5662
add_executable(oup_runtime_tests ${RUNTIME_TEST_FILES})
5763
target_link_libraries(oup_runtime_tests PRIVATE oup::oup)
64+
target_link_libraries(oup_runtime_tests PRIVATE snatch::snatch)
5865
add_platform_definitions(oup_runtime_tests)
59-
target_compile_definitions(oup_runtime_tests PUBLIC
60-
SNATCH_DEFINE_MAIN=1)
6166

6267
add_custom_target(oup_runtime_tests_run
6368
COMMAND oup_runtime_tests

0 commit comments

Comments
 (0)