xlnt/build/cmake/xlnt.test/CMakeLists.txt

24 lines
599 B
CMake
Raw Normal View History

project(xlnt.test)
2015-10-27 04:26:47 +08:00
include_directories(../../../include)
include_directories(../../../third-party/pugixml/src)
include_directories(../../../third-party/cxxtest)
2015-10-27 04:26:47 +08:00
add_executable(xlnt.test ../../../tests/runner-autogen.cpp)
2015-10-27 04:26:47 +08:00
target_link_libraries(xlnt.test xlnt)
2015-10-27 04:26:47 +08:00
2015-10-27 05:47:40 +08:00
add_custom_target (test-runner
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../../generate-tests.sh
2015-10-27 04:26:47 +08:00
COMMENT "Generating test runner tests/runner-autogen.cpp"
)
2015-10-27 05:47:40 +08:00
add_dependencies(xlnt.test test-runner)
2015-10-27 04:39:15 +08:00
add_custom_command(
TARGET xlnt.test
POST_BUILD
2015-10-27 05:47:40 +08:00
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/xlnt.test
2015-10-27 04:39:15 +08:00
VERBATIM
)