File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ target_compile_definitions(nanothread PRIVATE -DNANOTHREAD_BUILD=1)
7171set_target_properties (nanothread PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE )
7272
7373if (NANOTHREAD_ENABLE_TESTS)
74- add_subdirectory (tests)
74+ include (CTest)
75+ add_subdirectory (tests)
7576endif ()
7677
7778configure_file (nanothreadConfig.cmake "${CMAKE_CURRENT_BINARY_DIR} /nanothread/nanothreadConfig.cmake" COPYONLY )
Original file line number Diff line number Diff line change 11add_executable (test_01 test_01.c)
22target_link_libraries (test_01 PRIVATE nanothread)
3+ add_test (NAME test_01 COMMAND test_01)
34
45add_executable (test_02 test_02.cpp)
56target_link_libraries (test_02 PRIVATE nanothread)
67target_compile_features (test_02 PRIVATE cxx_std_11)
8+ add_test (NAME test_02 COMMAND test_02)
79
810add_executable (test_03 test_03.cpp)
911target_link_libraries (test_03 PRIVATE nanothread)
1012target_compile_features (test_03 PRIVATE cxx_std_14)
13+ add_test (NAME test_03 COMMAND test_03)
1114
1215add_executable (test_04 test_04.cpp)
1316target_link_libraries (test_04 PRIVATE nanothread)
1417target_compile_features (test_04 PRIVATE cxx_std_11)
18+ add_test (NAME test_04 COMMAND test_04)
You can’t perform that action at this time.
0 commit comments