11 lines
166 B
CMake
11 lines
166 B
CMake
|
|
enable_testing()
|
||
|
|
|
||
|
|
add_executable(test test.cpp)
|
||
|
|
|
||
|
|
target_link_libraries(test
|
||
|
|
GTest::gtest_main
|
||
|
|
)
|
||
|
|
|
||
|
|
include(GoogleTest)
|
||
|
|
gtest_discover_tests(test)
|