Commit 222be95b authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

try to fix tests for windows

parent 9e6f760f
### dtkSetTestEnvironment.cmake.in ---
##
## Author: Julien Wintz
##
######################################################################
#
# TEST_INCLUDE_FILE for use with tests.
# Sets the PATH environment so that dlls are found.
#
# Choose a configuration with which to drive CTest tests.
IF(NOT CTEST_CONFIGURATION_TYPE)
set (CTEST_CONFIGURATION_TYPE "Release")
endif()
if(@CMAKE_SYSTEM_NAME@ STREQUAL Windows)
set(PATHS_FOR_TESTS)
list(APPEND PATHS_FOR_TESTS "@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/${CTEST_CONFIGURATION_TYPE}")
list(APPEND PATHS_FOR_TESTS "@QT_BINARY_DIR@")
else()
#Make string list from paths.
set(PATHS_FOR_TESTS "$ENV{PATH}")
endif()
set(ENV{PATH} "${PATHS_FOR_TESTS}")
......@@ -12,6 +12,10 @@
##
### Code:
configure_file(${CMAKE_SOURCE_DIR}/cmake/dtkSetTestEnvironment.cmake.in "${CMAKE_BINARY_DIR}/dtkSetTestEnvironment.cmake" @ONLY)
set_directory_properties(PROPERTIES TEST_INCLUDE_FILE "${CMAKE_BINARY_DIR}/dtkSetTestEnvironment.cmake")
add_subdirectory(dtkCore)
add_subdirectory(dtkLog)
add_subdirectory(dtkMeta)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment