This teaches find_package to search <prefix>/(share|lib)/cmake/<name>*/ for package configuration files. Packages that do not already have files in a <prefix>/lib/<name>* directory can use this location to avoid cluttering the lib directory.
9 lines
281 B
CMake
9 lines
281 B
CMake
SET(PACKAGE_VERSION 3.1)
|
|
IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
|
|
SET(PACKAGE_VERSION_COMPATIBLE 1)
|
|
IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
|
|
SET(PACKAGE_VERSION_EXACT 1)
|
|
ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
|
|
ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
|
|
|