summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-29 20:58:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-29 20:58:19 (GMT)
commit46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134 (patch)
tree94726fec6aee4edd9144b7f399ecc79b83450e14 /Source/CMakeLists.txt
parentd6219588c049c8d7ca1b328d918e410e9385f0c8 (diff)
downloadCMake-46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134.zip
CMake-46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134.tar.gz
CMake-46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134.tar.bz2
BUG: fix a problem where it tried to link .dll.lib files
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 63db833..e53aca1 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -403,6 +403,18 @@ IF(BUILD_TESTING)
${CMake_SOURCE_DIR}/Tests/TargetName/scripts/hello_world
${CMake_BINARY_DIR}/Tests/TargetName/scripts/hello_world)
+ ADD_TEST(LibName ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/LibName"
+ "${CMake_BINARY_DIR}/Tests/LibName"
+ --build-two-config
+ --build-generator ${CMAKE_TEST_GENERATOR}
+ --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
+ --build-project LibName
+ --build-run-dir "${CMake_BINARY_DIR}/Tests/LibName/lib"
+ --test-command foobar
+ )
+
ADD_TEST(CustomCommand ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/CustomCommand"