summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-16 20:55:38 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-16 20:55:38 (GMT)
commit5edc8c57da6eb8bfb7725ac51c4b87edd950e847 (patch)
tree9ace2de79925e86e9bbf6106a8aa0b6951f40da3
parenteb9139b34ee8e0c5ac9f94f93078165c6e5edd56 (diff)
update cmakelist for building tests in same dir as gui binary
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 5eecaae..6178c3a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -604,6 +604,10 @@ else()
set(GUI_BINPATH "${CMAKE_CURRENT_SOURCE_DIR}/../openscad")
endif()
+if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/openscad")
+ set(GUI_BINPATH "${CMAKE_CURRENT_BINARY_DIR}/openscad")
+endif()
+
if(EXISTS "${GUI_BINPATH}")
message(STATUS "Found OpenSCAD GUI binary: ${GUI_BINPATH}")
else()
contact: Jan Huwald // Impressum