nix-config/templates/c++-cmake/tests/unit/CMakeLists.txt
Bruno BELANYI 7e361aff9d
All checks were successful
ci/woodpecker/push/check Pipeline was successful
templates: c++-cmake: fix formatting
2024-02-16 22:44:24 +00:00

16 lines
296 B
CMake

find_package(GTest)
if(${GTest_FOUND})
include(GoogleTest)
add_executable(dummy_test dummy_test.cc)
target_link_libraries(dummy_test PRIVATE common_options)
target_link_libraries(dummy_test PRIVATE
GTest::gtest
GTest::gtest_main
)
gtest_discover_tests(dummy_test)
endif()