CMakeLists.txt (548B)
1 cmake_minimum_required(VERSION 3.14) 2 3 project(stamenTests LANGUAGES CXX) 4 5 include(../cmake/project-is-top-level.cmake) 6 include(../cmake/folders.cmake) 7 8 # ---- Dependencies ---- 9 10 if(PROJECT_IS_TOP_LEVEL) 11 find_package(stamen REQUIRED) 12 enable_testing() 13 endif() 14 15 # ---- Tests ---- 16 17 add_executable(stamen_test source/stamen_test.cpp) 18 target_link_libraries(stamen_test PRIVATE stamen::stamen) 19 target_compile_features(stamen_test PRIVATE cxx_std_20) 20 21 add_test(NAME stamen_test COMMAND stamen_test) 22 23 # ---- End-of-file commands ---- 24 25 add_folders(Test)