From 62d5138ca36bae6c771b68ff7389ebf25e345d24 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 24 Jul 2003 11:33:06 -0400 Subject: ENH: Added FindPackageTest to improve coverage. --- Source/CMakeLists.txt | 5 +++++ Tests/FindPackageTest/CMakeLists.txt | 12 ++++++++++++ Tests/FindPackageTest/FindPackageTest.cxx | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 Tests/FindPackageTest/CMakeLists.txt create mode 100644 Tests/FindPackageTest/FindPackageTest.cxx diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 552bbec..3bf3f14 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -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 diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt new file mode 100644 index 0000000..6f1a7e5 --- /dev/null +++ b/Tests/FindPackageTest/CMakeLists.txt @@ -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) diff --git a/Tests/FindPackageTest/FindPackageTest.cxx b/Tests/FindPackageTest/FindPackageTest.cxx new file mode 100644 index 0000000..f8b643a --- /dev/null +++ b/Tests/FindPackageTest/FindPackageTest.cxx @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} -- cgit v0.12