summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testSharedForward.c.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-26 12:24:31 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-26 12:24:31 (GMT)
commitd82f98f8b10445ae2c8be23b5475bd4458f6f084 (patch)
tree125565f71902fdbb8fffe974ce0e45c55683a44b /Source/kwsys/testSharedForward.c.in
parentd6643ebba469d2ac7da20a7aed5da88b11daabd2 (diff)
downloadCMake-d82f98f8b10445ae2c8be23b5475bd4458f6f084.zip
CMake-d82f98f8b10445ae2c8be23b5475bd4458f6f084.tar.gz
CMake-d82f98f8b10445ae2c8be23b5475bd4458f6f084.tar.bz2
ENH: Add test for KWSys SharedForward
This tests the basic capability of running another executable from the build tree.
Diffstat (limited to 'Source/kwsys/testSharedForward.c.in')
-rw-r--r--Source/kwsys/testSharedForward.c.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/Source/kwsys/testSharedForward.c.in b/Source/kwsys/testSharedForward.c.in
new file mode 100644
index 0000000..61d94af
--- /dev/null
+++ b/Source/kwsys/testSharedForward.c.in
@@ -0,0 +1,38 @@
+/*=========================================================================
+
+ Program: KWSys - Kitware System Library
+ Module: $RCSfile$
+
+ Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
+ See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the above copyright notices for more information.
+
+=========================================================================*/
+#if defined(CMAKE_INTDIR)
+# define CONFIG_DIR_PRE CMAKE_INTDIR "/"
+# define CONFIG_DIR_POST "/" CMAKE_INTDIR
+#else
+# define CONFIG_DIR_PRE ""
+# define CONFIG_DIR_POST ""
+#endif
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_DIR_BUILD "@EXEC_DIR@"
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_PATH_BUILD "." CONFIG_DIR_POST
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_PATH_INSTALL 0
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_EXE_BUILD \
+ CONFIG_DIR_PRE "@KWSYS_NAMESPACE@TestProcess"
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_EXE_INSTALL \
+ "@KWSYS_NAMESPACE@TestProcess"
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_COMMAND "--command"
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_PRINT "--print"
+#define @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_LDD "--ldd"
+#if defined(CMAKE_INTDIR)
+# define @KWSYS_NAMESPACE@_SHARED_FORWARD_CONFIG_NAME CMAKE_INTDIR
+#endif
+#include <@KWSYS_NAMESPACE@/SharedForward.h>
+int main(int argc, char** argv)
+{
+ return @KWSYS_NAMESPACE@_shared_forward_to_real(argc, argv);
+}