summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-20 19:46:32 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-08-21 17:10:30 +0200
commitf3005a44f87e30792acc410125113cd19b76a81a (patch)
treefbe0e6cd0ea433cb8e426754a27dd7826cc80f91 /test/CMakeLists.txt
parent4c012bd7067091fcd44012c8b85fb4519324d0f7 (diff)
CMake: move test executables to build/bin/test
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index c1a98617b..deb6a74cd 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -18,7 +18,7 @@
include (../CMake/FLTK-Functions.cmake)
include (../CMake/fl_create_example.cmake)
-set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../bin)
+set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/../bin/test)
set (TESTFILE_PATH ${CMAKE_CURRENT_BINARY_DIR}/../data)
# create data and binary directory to copy scripts and data files
@@ -226,7 +226,8 @@ file (COPY
DESTINATION ${TESTFILE_PATH}
)
-# the main test program 'demo' needs additional hints and configurations
+# The main test program 'demo' needs additional hints and configurations.
+# Note: CMake defines "CMAKE_INTDIR" which is the build type folder (e.g. "Debug")
+# for multi config builds (MSVC, Xcode)
target_compile_definitions (demo PRIVATE GENERATED_BY_CMAKE)
-target_compile_definitions (demo PRIVATE CMAKE_SOURCE_PATH="${CMAKE_CURRENT_SOURCE_DIR}")