07f029d6ef
We teach the FindPackageTest to build a sample project that stores its build tree in the user package registry using export(PACKAGE), and then find it with find_package.
7 lines
201 B
CMake
7 lines
201 B
CMake
# Test config file.
|
|
SET(PACKAGE_VERSION "1.@CMAKE_VERSION@")
|
|
IF("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
|
|
SET(PACKAGE_VERSION_COMPATIBLE 1)
|
|
SET(PACKAGE_VERSION_EXACT 1)
|
|
ENDIF()
|