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

25 lines
604 B
CMake
Raw Permalink Normal View History

set(target pddl-tests)
file(GLOB core_sources "*.cpp")
set(includes
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/../../lib/catch/single_include
2017-06-13 19:52:15 +02:00
${PROJECT_SOURCE_DIR}/../../lib/tokenize/include
${PROJECT_SOURCE_DIR}/../../lib/variant/include
)
set(libraries
stdc++fs
pddl
)
add_executable(${target} ${core_sources})
target_include_directories(${target} PRIVATE ${includes})
target_link_libraries(${target} ${libraries})
add_custom_target(run-pddl-tests
COMMAND ${CMAKE_BINARY_DIR}/bin/pddl-tests --use-colour=yes
DEPENDS ${target}
2017-06-13 19:52:15 +02:00
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../../tests)