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.
2016-05-20 18:46:37 +02:00
|
|
|
set(target tests)
|
|
|
|
|
|
|
|
file(GLOB core_sources "*.cpp")
|
|
|
|
|
2017-05-09 13:01:10 +02:00
|
|
|
set(includes
|
2016-05-20 18:46:37 +02:00
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${PROJECT_SOURCE_DIR}/include
|
2016-11-12 18:14:30 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/lib/catch/single_include
|
2017-05-09 15:05:59 +02:00
|
|
|
${PROJECT_SOURCE_DIR}/lib/parsebase/include
|
2016-05-20 18:46:37 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(libraries
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
plasp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${target} ${core_sources})
|
2017-05-09 13:01:10 +02:00
|
|
|
target_include_directories(${target} PRIVATE ${includes})
|
2016-05-20 18:46:37 +02:00
|
|
|
target_link_libraries(${target} ${libraries})
|
2016-05-20 20:00:03 +02:00
|
|
|
|
|
|
|
add_custom_target(run-tests
|
|
|
|
COMMAND ${CMAKE_BINARY_DIR}/bin/tests
|
|
|
|
DEPENDS ${target}
|
2016-12-08 02:16:17 +01:00
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests)
|