diff options
author | Brad King <brad.king@kitware.com> | 2014-02-28 14:48:35 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-02-28 14:48:35 (GMT) |
commit | f23cc1d3d8a75b4406f61e24940d42758d3d663d (patch) | |
tree | c64f2c868f8a4d946ff7606c92a367b45d5e73bc /Tests/Module/FindDependency/packages/Pack3 | |
parent | 18646dd397d2c86b51118e16c62a89549bc1087d (diff) | |
parent | 0bba365ff5423fc51d574d17b7934e3a0148ac2e (diff) | |
download | CMake-f23cc1d3d8a75b4406f61e24940d42758d3d663d.zip CMake-f23cc1d3d8a75b4406f61e24940d42758d3d663d.tar.gz CMake-f23cc1d3d8a75b4406f61e24940d42758d3d663d.tar.bz2 |
Merge topic 'test-find_dependency'
0bba365f Add test for find_dependency macro.
Diffstat (limited to 'Tests/Module/FindDependency/packages/Pack3')
-rw-r--r-- | Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake | 5 | ||||
-rw-r--r-- | Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake b/Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake new file mode 100644 index 0000000..25c32f3 --- /dev/null +++ b/Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake @@ -0,0 +1,5 @@ + +set(PACK3_VAR ON) + +add_library(Pack3::Lib INTERFACE IMPORTED) +set_property(TARGET Pack3::Lib PROPERTY INTERFACE_COMPILE_DEFINITIONS HAVE_PACK3) diff --git a/Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake b/Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake new file mode 100644 index 0000000..870f747 --- /dev/null +++ b/Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake @@ -0,0 +1,11 @@ + +set(PACKAGE_VERSION "1.4") + +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() |