File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # copied from CPM.cmake GitHub site
3
+ # download CPM.cmake
4
+
5
+ file (
6
+ DOWNLOAD
7
+ https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.39.0/CPM.cmake
8
+ ${CMAKE_CURRENT_BINARY_DIR} /cmake/CPM.cmake
9
+ )
10
+ include (${CMAKE_CURRENT_BINARY_DIR} /cmake/CPM.cmake )
Original file line number Diff line number Diff line change 17
17
set ( test_app_names extract_append_test
18
18
binary_serialize_test )
19
19
# add executable
20
- foreach ( test_app_name IN LISTS test_app_name )
20
+ foreach ( test_app_name IN LISTS test_app_names )
21
+ message ( "Creating test executable: ${test_app_name} " )
21
22
add_executable ( ${test_app_name} ${test_app_name} .cpp )
22
23
target_compile_features ( ${test_app_name} PRIVATE cxx_std_20 )
23
- target_link_libraries ( ${test_app_name} PRIVATE utility_rack Catch2::Catch2WithMain )
24
+ target_link_libraries ( ${test_app_name} PRIVATE binary_serialize utility_rack Catch2::Catch2WithMain )
24
25
endforeach ()
25
26
26
27
enable_testing ()
27
28
28
- foreach ( test_app_name IN LISTS test_app_name )
29
+ foreach ( test_app_name IN LISTS test_app_names )
30
+ message ( "Creating test: run_${test_app_name} " )
29
31
add_test ( NAME run_${test_app_name} COMMAND ${test_app_name} )
30
32
set_tests_properties ( run_${test_app_name}
31
33
PROPERTIES PASS_REGULAR_EXPRESSION "All tests passed"
You can’t perform that action at this time.
0 commit comments