ENH: Added FindPackageTest to improve coverage.

This commit is contained in:
Brad King 2003-07-24 11:33:06 -04:00
parent 78367fbc1b
commit 62d5138ca3
3 changed files with 21 additions and 0 deletions

View File

@ -165,6 +165,11 @@ IF(BUILD_TESTING)
CustomCommand
${CMake_BINARY_DIR}/Tests/CustomCommand/bin)
ADD_TEST(FindPackageTest ${EXECUTABLE_OUTPUT_PATH}/cmaketest
${CMake_SOURCE_DIR}/Tests/FindPackageTest
${CMake_BINARY_DIR}/Tests/FindPackageTest
FindPackageTest)
ADD_TEST(SystemInformation ${EXECUTABLE_OUTPUT_PATH}/cmaketest
${CMake_SOURCE_DIR}/Tests/SystemInformation
${CMake_BINARY_DIR}/Tests/SystemInformation

View File

@ -0,0 +1,12 @@
PROJECT(FindPackageTest)
# Look for a package that has a find module and may be found.
FIND_PACKAGE(OpenGL QUIET)
# Look for a package that has no find module and will not be found.
FIND_PACKAGE(NotAPackage QUIET)
# Look for a package that has an advanced find module.
FIND_PACKAGE(VTK QUIET)
ADD_EXECUTABLE(FindPackageTest FindPackageTest.cxx)

View File

@ -0,0 +1,4 @@
int main()
{
return 0;
}