[CMake] unit-test copy more data
This commit is contained in:
parent
ba8a972254
commit
59f7a61661
1 changed files with 3 additions and 2 deletions
|
@ -187,11 +187,12 @@ mapnik_copy_dependencies(
|
||||||
|
|
||||||
file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/test")
|
file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/test")
|
||||||
file(COPY data-visual DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/test")
|
file(COPY data-visual DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/test")
|
||||||
|
file(COPY unit/data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/test/unit")
|
||||||
file(COPY "${mapnik_SOURCE_DIR}/demo/data" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/demo")
|
file(COPY "${mapnik_SOURCE_DIR}/demo/data" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/demo")
|
||||||
add_dependencies(mapnik-test-unit mapnik-index shapeindex)
|
add_dependencies(mapnik-test-unit mapnik-index shapeindex)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
catch_discover_tests(mapnik-test-unit
|
catch_discover_tests(mapnik-test-unit PROPERTIES
|
||||||
PROPERTIES ENVIRONMENT "PATH=\$<JOIN:\$<SHELL_PATH:$<TARGET_FILE_DIR:mapnik-index>;$<TARGET_FILE_DIR:shapeindex>;$ENV{PATH}>,\\\\\\\\\;>"
|
ENVIRONMENT "PATH=\$<JOIN:\$<SHELL_PATH:$<TARGET_FILE_DIR:mapnik-index>;$<TARGET_FILE_DIR:shapeindex>;$ENV{PATH}>,\\\\\\\\\;>"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
catch_discover_tests(mapnik-test-unit PROPERTIES
|
catch_discover_tests(mapnik-test-unit PROPERTIES
|
||||||
|
|
Loading…
Reference in a new issue