2021-08-22 15:32:46 -04:00
|
|
|
|
|
|
|
find_package(GTest)
|
|
|
|
if (GTest_FOUND)
|
|
|
|
file(GLOB SRCS *.cpp)
|
|
|
|
add_executable(Tests ${SRCS})
|
2021-08-24 18:10:20 -04:00
|
|
|
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()
|