Browse Source

ENH: add test I removed by mistake

Bill Hoffman 19 years ago
parent
commit
1936242ad4
1 changed files with 12 additions and 0 deletions
  1. 12 0
      Source/CMakeLists.txt

+ 12 - 0
Source/CMakeLists.txt

@@ -411,6 +411,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-exe-dir "${CMake_BINARY_DIR}/Tests/LibName/lib"
+    --test-command foobar
+    )
+
   ADD_TEST(CustComDepend ${CMAKE_CTEST_COMMAND}
     --build-and-test
     "${CMake_SOURCE_DIR}/Tests/CustComDepend"