File tree Expand file tree Collapse file tree 4 files changed +13
-1586
lines changed Expand file tree Collapse file tree 4 files changed +13
-1586
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -29,8 +29,14 @@ function(add_platform_definitions TARGET)
2929 endif ()
3030endfunction ()
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+
3239set (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
5662add_executable (oup_runtime_tests ${RUNTIME_TEST_FILES} )
5763target_link_libraries (oup_runtime_tests PRIVATE oup::oup)
64+ target_link_libraries (oup_runtime_tests PRIVATE snatch::snatch)
5865add_platform_definitions(oup_runtime_tests)
59- target_compile_definitions (oup_runtime_tests PUBLIC
60- SNATCH_DEFINE_MAIN=1)
6166
6267add_custom_target (oup_runtime_tests_run
6368 COMMAND oup_runtime_tests
You can’t perform that action at this time.
0 commit comments