summaryrefslogtreecommitdiffstats
path: root/Tests/Wrapping
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-30 17:11:04 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-30 17:11:04 (GMT)
commit36e6b85f70fde85d511442f9f9fe2a496cf2e298 (patch)
treeec28f427d6cbbfb2c773f24de8b3185d52bffaf0 /Tests/Wrapping
parentc12cc46a00c4709cce58b00a5ba43e8cd70b4dd7 (diff)
downloadCMake-36e6b85f70fde85d511442f9f9fe2a496cf2e298.zip
CMake-36e6b85f70fde85d511442f9f9fe2a496cf2e298.tar.gz
CMake-36e6b85f70fde85d511442f9f9fe2a496cf2e298.tar.bz2
ENH: Add executable for wrapping test, so that make stage actually passes
Diffstat (limited to 'Tests/Wrapping')
-rw-r--r--Tests/Wrapping/CMakeLists.txt11
-rw-r--r--Tests/Wrapping/Wrap.c12
2 files changed, 19 insertions, 4 deletions
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt
index 26c4b2e..d7ddd81 100644
--- a/Tests/Wrapping/CMakeLists.txt
+++ b/Tests/Wrapping/CMakeLists.txt
@@ -28,6 +28,9 @@ ENDIF (EXECUTABLE_OUTPUT_PATH)
#
ADD_EXECUTABLE (wrapping wrapping.cxx)
+ADD_EXECUTABLE (Wrap Wrap.c)
+SET(WRAP ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/Wrap)
+
#
# Test VTK wrappers
#
@@ -49,7 +52,7 @@ FIND_FILE(VTK_WRAP_HINTS hints ${Wrapping_SOURCE_DIR})
# Wrap VTK -> Tcl
#
SET (VTK_WRAP_TCL "On")
-SET (VTK_WRAP_TCL_EXE "echo")
+SET (VTK_WRAP_TCL_EXE "${WRAP}")
VTK_WRAP_TCL (wraplibTCL TCL_SRCS SRCS)
ADD_CUSTOM_TARGET(wraplibTCL ALL
${CMAKE_COMMAND} -E echo "dummy target"
@@ -59,7 +62,7 @@ ADD_CUSTOM_TARGET(wraplibTCL ALL
# Wrap VTK -> Python
#
SET (VTK_WRAP_PYTHON "On")
-SET (VTK_WRAP_PYTHON_EXE "echo")
+SET (VTK_WRAP_PYTHON_EXE "${WRAP}")
VTK_WRAP_PYTHON (wraplibPython Python_SRCS SRCS)
ADD_CUSTOM_TARGET(wraplibPython ALL
${CMAKE_COMMAND} -E echo "dummy target"
@@ -73,8 +76,8 @@ ADD_CUSTOM_TARGET(wraplibPython ALL
# so that the build succeeds.
#
SET (VTK_WRAP_JAVA "On")
-SET (VTK_WRAP_JAVA_EXE "echo")
-SET (VTK_PARSE_JAVA_EXE "echo")
+SET (VTK_WRAP_JAVA_EXE "${WRAP}")
+SET (VTK_PARSE_JAVA_EXE "${WRAP}")
SET (VTK_JAVA_HOME "${Wrapping_BINARY_DIR}/java")
VTK_WRAP_JAVA (wraplibJava Java_SRCS SRCS)
CONFIGURE_FILE(
diff --git a/Tests/Wrapping/Wrap.c b/Tests/Wrapping/Wrap.c
new file mode 100644
index 0000000..fda49d3
--- /dev/null
+++ b/Tests/Wrapping/Wrap.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int main(int argc, char* argv[])
+{
+ int cc;
+ for ( cc = 1; cc < argc; cc ++ )
+ {
+ printf("%s ", argv[cc]);
+ }
+ printf("\n");
+ return 0;
+}