summaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-02-03 02:13:37 (GMT)
committerMarius Kintel <marius@kintel.net>2013-02-03 02:13:37 (GMT)
commitd2d22503eb0e9b5cfe3846562aa84af18a044907 (patch)
tree536dc65cf43152e3934ac123086afa9d9d648483 /tests/CMakeLists.txt
parente5448f5e69f6d59256ba1816acf2647e808e10db (diff)
parent44cddd0b3cf69b1e10811f0000c0ddef02c15d58 (diff)
Merge pull request #271 from openscad/cmake_workaround
Cmake workaround
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index fcf7d08..8b7a252 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -796,6 +796,15 @@ endif()
# 1. Start/stop Virtual Framebuffer for linux/bsd. 2. Pretty Print
# Please see the CTestCustom.template file for more info.
+#
+# Post-test pretty print
+#
+
+add_executable(test_pretty_print test_pretty_print.cc)
+set_target_properties(test_pretty_print PROPERTIES COMPILE_FLAGS
+ "-DPYBIN=${PYTHON_EXECUTABLE} -DPYSRC=test_pretty_print.py -DBUILDDIR=--builddir=${CMAKE_CURRENT_BINARY_DIR}"
+)
+
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.template TMP)
string(REPLACE __cmake_current_binary_dir__ ${CMAKE_CURRENT_BINARY_DIR} TMP ${TMP})
string(REPLACE __cmake_current_source_dir__ ${CMAKE_CURRENT_SOURCE_DIR} TMP ${TMP})
contact: Jan Huwald // Impressum