summaryrefslogtreecommitdiffstats
path: root/Tests/Wrapping
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-20 06:06:09 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-20 06:06:09 (GMT)
commitf04128ad63b560079ab49118b9e64e2fe73ba39b (patch)
tree4ed8c08b92e0f5bdb06ea85133731572587d6453 /Tests/Wrapping
parent049a4820a23ba3f939246f96458a281ddc8f29a2 (diff)
downloadCMake-f04128ad63b560079ab49118b9e64e2fe73ba39b.zip
CMake-f04128ad63b560079ab49118b9e64e2fe73ba39b.tar.gz
CMake-f04128ad63b560079ab49118b9e64e2fe73ba39b.tar.bz2
Add coverage for QT and FLTK wrappers. Also MANGLED_MESA
Diffstat (limited to 'Tests/Wrapping')
-rw-r--r--Tests/Wrapping/CMakeLists.txt34
-rw-r--r--Tests/Wrapping/fltk1.fl0
2 files changed, 34 insertions, 0 deletions
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt
index b1f8906..2f4ea71 100644
--- a/Tests/Wrapping/CMakeLists.txt
+++ b/Tests/Wrapping/CMakeLists.txt
@@ -93,3 +93,37 @@ VTK_WRAP_JAVA (wraplibJava Java_SRCS SRCS)
ADD_CUSTOM_TARGET(${VTK_JAVA_HOME}/vtkIncluded.java
echo "Triggering custom target vtkIncluded.java")
+#
+# QT Wrappers
+#
+SET (QT_WRAP_CPP "On")
+SET (QT_MOC_EXE "echo")
+QT_WRAP_CPP (wraplibQT QT_SRCS SRCS)
+
+SET (QT_WRAP_UI "On")
+SET (QT_UIC_EXE "echo")
+QT_WRAP_UI (wraplibQTUI QTUI_H_SRCS QTUI_S_SRCS SRCS)
+
+#
+# FLTK Wrappers
+#
+# Since FLTK_FLUID_EXE is supposed to create a .cxx/.h from a .fl/.fld,
+# create an empty one so that the dependencies can be met.
+#
+SOURCE_FILES (FLTK_SRCS
+ fltk1.fl
+)
+SET (FLTK_WRAP_UI "On")
+SET (FLTK_FLUID_EXE "echo")
+FLTK_WRAP_UI (wraplibFLTK FLTK_SRCS)
+ADD_LIBRARY (wraplibFLTK)
+CONFIGURE_FILE(
+ ${Wrapping_SOURCE_DIR}/fltk1.fl
+ ${Wrapping_BINARY_DIR}/fltk1.cxx
+ COPYONLY)
+
+#
+# Mangled Mesa
+#
+USE_MANGLED_MESA (${Wrapping_SOURCE_DIR} ${Wrapping_BINARY_DIR}/mangled_mesa)
+
diff --git a/Tests/Wrapping/fltk1.fl b/Tests/Wrapping/fltk1.fl
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/fltk1.fl