CMakeLists.txt (779B)
1 find_package(Catch2 REQUIRED) 2 mark_as_advanced(Catch2_DIR) 3 4 add_executable(tests EXCLUDE_FROM_ALL 5 action.cpp 6 api.cpp 7 database.cpp 8 event.cpp 9 filesystem.cpp 10 filter.cpp 11 hash.cpp 12 helper.cpp 13 helper.hpp 14 index.cpp 15 index_v1.cpp 16 metadata.cpp 17 package.cpp 18 path.cpp 19 platform.cpp 20 receipt.cpp 21 registry.cpp 22 remote.cpp 23 serializer.cpp 24 source.cpp 25 string.cpp 26 time.cpp 27 version.cpp 28 win32.cpp 29 xml.cpp 30 ) 31 32 # std::uncaught_exceptions is unavailable prior to macOS 10.12 33 target_compile_definitions(tests PRIVATE CATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS) 34 target_include_directories(tests PRIVATE 35 ${CMAKE_SOURCE_DIR}/src 36 ${CMAKE_SOURCE_DIR}/vendor ${CMAKE_SOURCE_DIR}/vendor/reaper-sdk/sdk 37 ) 38 target_link_libraries(tests Catch2::Catch2WithMain reapack)