CMakeLists.txt (517B)
1 # Parent project does not export its library target, so this CML implicitly 2 # depends on being added from it, i.e. the testing is done only from the build 3 # tree and is not feasible from an install location 4 5 project(stamdTests LANGUAGES CXX) 6 7 # ---- Tests ---- 8 9 add_executable(stamd_test source/stamd_test.cpp) 10 target_link_libraries(stamd_test PRIVATE stamd_lib) 11 target_compile_features(stamd_test PRIVATE cxx_std_20) 12 13 add_test(NAME stamd_test COMMAND stamd_test) 14 15 # ---- End-of-file commands ---- 16 17 add_folders(Test)