2015-09-24 07:24:43 +08:00
|
|
|
project(xlnt.test)
|
2015-10-27 04:26:47 +08:00
|
|
|
|
2015-09-24 07:24:43 +08:00
|
|
|
include_directories(../../../include)
|
|
|
|
include_directories(../../../third-party/pugixml/src)
|
|
|
|
include_directories(../../../third-party/cxxtest)
|
2015-10-27 04:26:47 +08:00
|
|
|
|
2015-09-24 07:24:43 +08:00
|
|
|
add_executable(xlnt.test ../../../tests/runner-autogen.cpp)
|
2015-10-27 04:26:47 +08:00
|
|
|
|
2015-09-24 07:24:43 +08:00
|
|
|
target_link_libraries(xlnt.test xlnt)
|
2015-10-27 04:26:47 +08:00
|
|
|
|
|
|
|
add_custom_target (generate
|
|
|
|
COMMAND ../generate-tests.sh
|
|
|
|
COMMENT "Generating test runner tests/runner-autogen.cpp"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies(xlnt.test generate)
|