summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
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/CMakeLists.txt
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/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 3cebc55..8424748 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -992,6 +992,13 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
ADD_TEST(kwsys.testProcess-${n} ${EXEC_DIR}/${KWSYS_NAMESPACE}TestProcess ${n})
ENDFOREACH(n)
+ # Test SharedForward
+ CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/testSharedForward.c.in
+ ${PROJECT_BINARY_DIR}/testSharedForward.c @ONLY IMMEDIATE)
+ ADD_EXECUTABLE(${KWSYS_NAMESPACE}TestSharedForward
+ ${PROJECT_BINARY_DIR}/testSharedForward.c)
+ ADD_TEST(kwsys.testSharedForward ${EXEC_DIR}/${KWSYS_NAMESPACE}TestSharedForward 1)
+
# Configure some test properties.
IF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY AND KWSYS_STANDALONE)
# We expect test to fail