ENH: fix test for configuration type builds

This commit is contained in:
Bill Hoffman 2006-11-29 17:02:35 -05:00
parent 9ffabcbb3f
commit f211823b55
1 changed files with 5 additions and 1 deletions

View File

@ -402,6 +402,10 @@ IF(BUILD_TESTING)
--test-command ${CMAKE_CMAKE_COMMAND} -E compare_files
${CMake_SOURCE_DIR}/Tests/TargetName/scripts/hello_world
${CMake_BINARY_DIR}/Tests/TargetName/scripts/hello_world)
SET(LIBNAME_DIR)
IF(CMAKE_CONFIGURATION_TYPES)
SET(LIBNAME_DIR Debug)
ENDIF(CMAKE_CONFIGURATION_TYPES)
ADD_TEST(LibName ${CMAKE_CTEST_COMMAND}
--build-and-test
@ -411,7 +415,7 @@ IF(BUILD_TESTING)
--build-generator ${CMAKE_TEST_GENERATOR}
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
--build-project LibName
--build-run-dir "${CMake_BINARY_DIR}/Tests/LibName/lib"
--build-run-dir "${CMake_BINARY_DIR}/Tests/LibName/lib/${LIBNAME_DIR}"
--test-command foobar
)