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/lib/tokenize/tests/CMakeLists.txt

22 lines
505 B
CMake
Raw Normal View History

2017-05-12 14:17:57 +02:00
set(target tokenize-tests)
file(GLOB core_sources "*.cpp")
set(includes
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/../../lib/catch/single_include
)
set(libraries
2017-05-12 14:17:57 +02:00
tokenize
)
add_executable(${target} ${core_sources})
target_include_directories(${target} PRIVATE ${includes})
target_link_libraries(${target} ${libraries})
2017-05-12 14:17:57 +02:00
add_custom_target(run-tokenize-tests
2017-06-18 18:10:03 +02:00
COMMAND ${CMAKE_BINARY_DIR}/bin/tokenize-tests --use-colour=yes
DEPENDS ${target}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests)