Commit 8df52b1c authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

simplify cmake

parent cdf326b6
...@@ -11,13 +11,10 @@ ...@@ -11,13 +11,10 @@
# Choose a configuration with which to drive CTest tests. # Choose a configuration with which to drive CTest tests.
set(PATHS_FOR_TESTS "$ENV{PATH}")
if(@CMAKE_SYSTEM_NAME@ STREQUAL Windows) if(@CMAKE_SYSTEM_NAME@ STREQUAL Windows)
set(PATHS_FOR_TESTS)
list(APPEND PATHS_FOR_TESTS "@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/@CMAKE_BUILD_TYPE@") list(APPEND PATHS_FOR_TESTS "@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/@CMAKE_BUILD_TYPE@")
list(APPEND PATHS_FOR_TESTS "@QT5_BINARY_DIR@") list(APPEND PATHS_FOR_TESTS "@QT5_BINARY_DIR@")
else()
#Make string list from paths.
set(PATHS_FOR_TESTS "$ENV{PATH}")
endif() endif()
set(ENV{PATH} "${PATHS_FOR_TESTS};$ENV{PATH}") set(ENV{PATH} "${PATHS_FOR_TESTS}")
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