summaryrefslogtreecommitdiffstats
path: root/Tests/Wrapping
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-20 05:11:19 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-20 05:11:19 (GMT)
commitc0ae30609033e0de5253a3c1da68428a91c858de (patch)
tree30857c33a78e8a541233ecec9ad8ddbfd79fd0af /Tests/Wrapping
parentcbd4c08fcfb7b0e8f9339078d88a9bc2a4c30697 (diff)
downloadCMake-c0ae30609033e0de5253a3c1da68428a91c858de.zip
CMake-c0ae30609033e0de5253a3c1da68428a91c858de.tar.gz
CMake-c0ae30609033e0de5253a3c1da68428a91c858de.tar.bz2
Add test for VTK_WRAP_*
Diffstat (limited to 'Tests/Wrapping')
-rw-r--r--Tests/Wrapping/CMakeLists.txt70
-rw-r--r--Tests/Wrapping/hints0
-rw-r--r--Tests/Wrapping/vtkExcluded.cxx0
-rw-r--r--Tests/Wrapping/vtkExcluded.h0
-rw-r--r--Tests/Wrapping/vtkIncluded.cxx0
-rw-r--r--Tests/Wrapping/vtkIncluded.h0
6 files changed, 58 insertions, 12 deletions
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt
index abd3fb9..b1f8906 100644
--- a/Tests/Wrapping/CMakeLists.txt
+++ b/Tests/Wrapping/CMakeLists.txt
@@ -26,24 +26,70 @@ ENDIF (EXECUTABLE_OUTPUT_PATH)
#
# Link to CMake lib
#
-FIND_LIBRARY(CMAKE_LIB
- CMakeLib
- ${Wrapping_BINARY_DIR}/../../Source
- ${Wrapping_BINARY_DIR}/../../Source/Debug
- ${Wrapping_BINARY_DIR}/../../Source/Release
- ${Wrapping_BINARY_DIR}/../../Source/MinSizeRel
- ${Wrapping_BINARY_DIR}/../../Source/RelWithDebInfo)
+FIND_LIBRARY (CMAKE_LIB
+ CMakeLib
+ ${Wrapping_BINARY_DIR}/../../Source
+ ${Wrapping_BINARY_DIR}/../../Source/Debug
+ ${Wrapping_BINARY_DIR}/../../Source/Release
+ ${Wrapping_BINARY_DIR}/../../Source/MinSizeRel
+ ${Wrapping_BINARY_DIR}/../../Source/RelWithDebInfo)
-LINK_LIBRARIES(${CMAKE_LIB})
+LINK_LIBRARIES (${CMAKE_LIB})
+
+#
+# Add exe
+#
+ADD_EXECUTABLE (wrapping wrapping.cxx)
#
# Test Cable
#
-CABLE_CLASS_SET(Float float)
-CABLE_CLASS_SET(Mesh "itk::Mesh<$Float>")
+CABLE_CLASS_SET (Float float)
+CABLE_CLASS_SET (Mesh "itk::Mesh<$Float>")
#
-# Add exe
+# Test VTK wrappers
+#
+SOURCE_FILES (SRCS
+ vtkExcluded
+ vtkIncluded
+)
+
+WRAP_EXCLUDE_FILES (
+ vtkExcluded
+)
+
+#
+# Specify (empty) VTK hint files
+#
+FIND_FILE(VTK_WRAP_HINTS hints ${Wrapping_SOURCE_DIR})
+
+#
+# Wrap VTK -> Tcl
+#
+SET (VTK_WRAP_TCL "On")
+SET (VTK_WRAP_TCL_EXE "echo")
+VTK_WRAP_TCL (wraplibTCL TCL_SRCS SRCS)
+
+#
+# Wrap VTK -> Python
+#
+SET (VTK_WRAP_PYTHON "On")
+SET (VTK_WRAP_PYTHON_EXE "echo")
+VTK_WRAP_PYTHON (wraplibPython Python_SRCS SRCS)
+
+#
+# Wrap VTK -> Java
+#
+# VTK_WRAP_JAVA puts dependencie between wraplibJavaJavaClasses (in ALL)
+# and each Java wrapped class (here, vtkIncluded, although it is not created).
+# A custom target is created to trick 'make' so that the build succeeds.
#
-ADD_EXECUTABLE(wrapping wrapping.cxx)
+SET (VTK_WRAP_JAVA "On")
+SET (VTK_WRAP_JAVA_EXE "echo")
+SET (VTK_PARSE_JAVA_EXE "echo")
+SET (VTK_JAVA_HOME ".")
+VTK_WRAP_JAVA (wraplibJava Java_SRCS SRCS)
+ADD_CUSTOM_TARGET(${VTK_JAVA_HOME}/vtkIncluded.java
+ echo "Triggering custom target vtkIncluded.java")
diff --git a/Tests/Wrapping/hints b/Tests/Wrapping/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/hints
diff --git a/Tests/Wrapping/vtkExcluded.cxx b/Tests/Wrapping/vtkExcluded.cxx
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/vtkExcluded.cxx
diff --git a/Tests/Wrapping/vtkExcluded.h b/Tests/Wrapping/vtkExcluded.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/vtkExcluded.h
diff --git a/Tests/Wrapping/vtkIncluded.cxx b/Tests/Wrapping/vtkIncluded.cxx
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/vtkIncluded.cxx
diff --git a/Tests/Wrapping/vtkIncluded.h b/Tests/Wrapping/vtkIncluded.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/Wrapping/vtkIncluded.h