OpenLCP/test/CMakeLists.txt

15 lines
329 B
CMake
Raw Normal View History

2021-08-22 15:32:46 -04:00
find_package(GTest)
if (GTest_FOUND)
file(GLOB SRCS *.cpp)
add_executable(Tests ${SRCS})
target_link_libraries(Tests PUBLIC
GTest::gtest
OpenLCP
)
target_include_directories(Tests PUBLIC
${GTEST_INCLUDE_DIRS} # doesn't do anything on Linux
)
2021-08-22 15:32:46 -04:00
gtest_discover_tests(Tests)
endif()