diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a0f674..c3dfb43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ project(pacman LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) +enable_testing() add_subdirectory(scaling-lib) add_subdirectory(lib) add_subdirectory(src) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 21c8d26..d54d688 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -7,5 +7,6 @@ file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp") add_executable(pacman_tests ${sources}) target_link_libraries(pacman_tests GTest::GTest libpacman) +add_test(NAME pacman_tests COMMAND pacman_tests) -gtest_discover_tests(pacman_tests) \ No newline at end of file +gtest_discover_tests(pacman_tests)