This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
plasp/tests/CMakeLists.txt

24 lines
422 B
CMake

set(target tests)
file(GLOB core_sources "*.cpp")
find_package(GTest)
INCLUDE_DIRECTORIES(
${GTEST_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/include
)
set(libraries
${Boost_LIBRARIES}
${GTEST_BOTH_LIBRARIES}
plasp
)
file(COPY data DESTINATION ${CMAKE_BINARY_DIR})
add_executable(${target} ${core_sources})
target_link_libraries(${target} ${libraries})
GTEST_ADD_TESTS(tests "" ${core_sources})