summaryrefslogtreecommitdiffstats
path: root/Tests/Wrapping
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-20 02:24:55 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-20 02:24:55 (GMT)
commitc8d8e693cf24d657ced601c8173258f89b62e71a (patch)
tree2fcf0b3929d709ec76fced03145ce59897a8c04d /Tests/Wrapping
parent30b3cc0755b43bf3ad04cf2fa4d5af441cbadfd7 (diff)
downloadCMake-c8d8e693cf24d657ced601c8173258f89b62e71a.zip
CMake-c8d8e693cf24d657ced601c8173258f89b62e71a.tar.gz
CMake-c8d8e693cf24d657ced601c8173258f89b62e71a.tar.bz2
Add documentation, comments. Move some 'Complex' sub-tests into 2 new 'Wrapping' and 'Testing' tests.
Diffstat (limited to 'Tests/Wrapping')
-rw-r--r--Tests/Wrapping/CMakeLists.txt49
-rw-r--r--Tests/Wrapping/wrapping.cxx4
2 files changed, 53 insertions, 0 deletions
diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt
new file mode 100644
index 0000000..abd3fb9
--- /dev/null
+++ b/Tests/Wrapping/CMakeLists.txt
@@ -0,0 +1,49 @@
+#
+# Wrapping
+#
+PROJECT (Wrapping)
+
+#
+# Lib and exe path
+#
+SET (LIBRARY_OUTPUT_PATH
+ ${Wrapping_BINARY_DIR}/bin/ CACHE PATH
+ "Single output directory for building all libraries.")
+
+SET (EXECUTABLE_OUTPUT_PATH
+ ${Wrapping_BINARY_DIR}/bin/ CACHE PATH
+ "Single output directory for building all executables.")
+
+#
+# Where will executable tests be written ?
+#
+IF (EXECUTABLE_OUTPUT_PATH)
+ SET (CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH})
+ELSE (EXECUTABLE_OUTPUT_PATH)
+ SET (CXX_TEST_PATH .)
+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)
+
+LINK_LIBRARIES(${CMAKE_LIB})
+
+#
+# Test Cable
+#
+CABLE_CLASS_SET(Float float)
+CABLE_CLASS_SET(Mesh "itk::Mesh<$Float>")
+
+#
+# Add exe
+#
+ADD_EXECUTABLE(wrapping wrapping.cxx)
+
diff --git a/Tests/Wrapping/wrapping.cxx b/Tests/Wrapping/wrapping.cxx
new file mode 100644
index 0000000..1482f27
--- /dev/null
+++ b/Tests/Wrapping/wrapping.cxx
@@ -0,0 +1,4 @@
+int main ()
+{
+ return 0;
+}