Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Jul 27, 2024
1 parent bfa74d6 commit eae9e72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ target_link_libraries(${PROJECT_NAME}-tests-17 PRIVATE Catch2::Catch2WithMain ${
catch_discover_tests(${PROJECT_NAME}-tests-17)

# add c++20 tests
add_executable(${PROJECT_NAME}-tests-20 ${TEST_SRC})
if(SEMVER_BUILD_MODULE)
list(APPEND TEST_SRC module/module_tests.cpp)
target_sources(${PROJECT_NAME}-tests-20 PRIVATE module/module_tests.cpp)
set_target_properties(${PROJECT_NAME}-tests-20 PROPERTIES CXX_SCAN_FOR_MODULES ON)
set_target_properties(${PROJECT_NAME}-tests-20 PROPERTIES CXX_EXTENSIONS OFF)
endif()
add_executable(${PROJECT_NAME}-tests-20 ${TEST_SRC})
set_target_properties(${PROJECT_NAME}-tests-20 PROPERTIES CXX_STANDARD 20)
target_link_libraries(${PROJECT_NAME}-tests-20 PRIVATE Catch2::Catch2WithMain ${PROJECT_NAME})
catch_discover_tests(${PROJECT_NAME}-tests-20)

0 comments on commit eae9e72

Please sign in to comment.