diff --git a/CMakeLists.txt b/CMakeLists.txt index 149752c..ec0529c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5 FATAL_ERROR) +cmake_minimum_required(VERSION 3.10) project(TopTeamBedrijfssimulatiesStarter LANGUAGES CXX) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 59eaca3..20e6ca9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,4 @@ +find_package(GTest QUIET) # Third Party include_directories(${GTEST_INCLUDE_DIR}) @@ -16,6 +17,7 @@ target_link_libraries(tests TopTeamBedrijfssimulaties cmdLineArgs gtest + GTest::gtest_main ) target_include_directories(tests diff --git a/tests/main.cpp b/tests/main.cpp deleted file mode 100644 index f258572..0000000 --- a/tests/main.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int main(int argc, char **argv) -{ - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} \ No newline at end of file