23 lines
515 B
CMake
23 lines
515 B
CMake
set(target parsebase-tests)
|
|
|
|
file(GLOB core_sources "*.cpp")
|
|
|
|
set(includes
|
|
${Boost_INCLUDE_DIRS}
|
|
${PROJECT_SOURCE_DIR}/include
|
|
${PROJECT_SOURCE_DIR}/../../lib/catch/single_include
|
|
)
|
|
|
|
set(libraries
|
|
parsebase
|
|
)
|
|
|
|
add_executable(${target} ${core_sources})
|
|
target_include_directories(${target} PRIVATE ${includes})
|
|
target_link_libraries(${target} ${libraries})
|
|
|
|
add_custom_target(run-parsebase-tests
|
|
COMMAND ${CMAKE_BINARY_DIR}/bin/parsebase-tests
|
|
DEPENDS ${target}
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests)
|