|
@@ -2,11 +2,10 @@
|
|
|
project(cmake_test)
|
|
|
|
|
|
# include catch_discover_tests function from Catch2
|
|
|
-include(${Catch2_SOURCE_DIR}/contrib/Catch.cmake)
|
|
|
+include(${Catch2_SOURCE_DIR}/extras/Catch.cmake)
|
|
|
|
|
|
# Make test executable
|
|
|
set(TEST_SOURCES
|
|
|
- tests.cpp
|
|
|
Example_test.cpp
|
|
|
PrusaStatistics_test.cpp
|
|
|
#Tests/Timer_test.cpp
|
|
@@ -14,6 +13,6 @@ set(TEST_SOURCES
|
|
|
)
|
|
|
|
|
|
add_executable(tests ${TEST_SOURCES})
|
|
|
-target_include_directories(tests PRIVATE Tests)
|
|
|
-target_link_libraries(tests Catch2::Catch2)
|
|
|
+target_include_directories(tests PRIVATE tests)
|
|
|
+target_link_libraries(tests Catch2::Catch2WithMain)
|
|
|
catch_discover_tests(tests)
|