Enable tests on CI
This commit is contained in:
parent
262ac5dcc5
commit
4b364bdda8
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
gtest_discover_tests(pacman_tests)
|
||||
|
|
Loading…
Reference in a new issue