diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-08-16 20:31:26 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-08-16 20:31:26 (GMT) |
commit | 626fc717c6a6fb880053e645b3f12805f60c102a (patch) | |
tree | 45cd140bb45fc2f0585a41c074cb062e8ccdd91b /Tests/FindPackageModeMakefileTest/FindFoo.cmake.in | |
parent | ec6982dc8cad04c72a6ab78b7f115ece65e812bd (diff) | |
download | CMake-626fc717c6a6fb880053e645b3f12805f60c102a.zip CMake-626fc717c6a6fb880053e645b3f12805f60c102a.tar.gz CMake-626fc717c6a6fb880053e645b3f12805f60c102a.tar.bz2 |
Much improved test, should now be executed on all UNIXes
Instead of relying on that some development package is installed on the
system, now a tiny library is built, which is the searched and used
during the test.
Alex
Diffstat (limited to 'Tests/FindPackageModeMakefileTest/FindFoo.cmake.in')
-rw-r--r-- | Tests/FindPackageModeMakefileTest/FindFoo.cmake.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in b/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in new file mode 100644 index 0000000..c6230ab --- /dev/null +++ b/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in @@ -0,0 +1,8 @@ + +find_library(FOO_LIBRARY NAMES foo HINTS "@CMAKE_CURRENT_BINARY_DIR@" ) +find_path(FOO_INCLUDE_DIR NAMES foo.h HINTS "@CMAKE_CURRENT_SOURCE_DIR@" ) + +set(FOO_LIBRARIES ${FOO_LIBRARY}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Foo DEFAULT_MSG FOO_LIBRARY FOO_INCLUDE_DIR ) |