From fa866217449dc365b85eb09528f66750646e2e23 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sat, 10 Jan 2026 13:01:06 +0100 Subject: [PATCH] cmake update --- CMakeLists.txt | 2 +- tests/CMakeLists.txt | 2 ++ tests/main.cpp | 7 ------- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 tests/main.cpp 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