summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-14 20:01:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-14 20:01:00 (GMT)
commit013b66d8fa7e3b832f5e6c88efd33bd369fda7eb (patch)
tree5bd7d3eded68277c2817ed4c427a8f746b45dbab /Source/CMakeLists.txt
parent32fe8caaefba6d0ec8ea183ec87cedad29a660c0 (diff)
downloadCMake-013b66d8fa7e3b832f5e6c88efd33bd369fda7eb.zip
CMake-013b66d8fa7e3b832f5e6c88efd33bd369fda7eb.tar.gz
CMake-013b66d8fa7e3b832f5e6c88efd33bd369fda7eb.tar.bz2
ENH: add a test for external projects
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 6ba1927..f615db2 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -598,6 +598,18 @@ IF(BUILD_TESTING)
"${CMake_BINARY_DIR}/Tests/SubDir/ShouldBeHere"
"${CMake_BINARY_DIR}/Tests/SubDir/testfromsubdir.o"
)
+
+ IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
+ ADD_TEST(VSExternalInclude ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/VSExternalInclude"
+ "${CMake_BINARY_DIR}/Tests/VSExternalInclude"
+ --build-two-config
+ --build-generator ${CMAKE_GENERATOR}
+ --build-project VSExternalInclude
+ --build-makeprogram ${MAKEPROGRAM}
+ --test-command VSExternalInclude)
+ ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
IF (APPLE)
ADD_TEST(objc++ ${CMAKE_CTEST_COMMAND}