On 01.10.2014 00:26, Nico Schlömer wrote:
into which of the directories listed in [1] are the CMake export files
(*Config.cmake, *Target.cmake,...) supposed to go?
On [2] scroll down to "CMake constructs a set of possible installation
prefixes for the package.".
Any of the listed (W) or (U) conventions will work.
My Qt5 installation (Ubuntu) for example seems to follow the first of
the listed unix (U) conventions:
<prefix>/(lib/<arch>|lib|share)/cmake/<name>*/
Resulting in e.g.:
/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
That corresponds to "${CMAKE_INSTALL_LIBDIR}/cmake/Qt5" which for the
default install prefix (/usr/local) expands to:
"lib/cmake/Qt5"
For CMAKE_INSTALL_PREFIX "/usr" it expands to:
"lib/x86_64-linux-gnu/cmake/Qt5"
Nils
[1] http://www.cmake.org/cmake/help/v3.0/module/GNUInstallDirs.html
[2] http://www.cmake.org/cmake/help/v3.0/command/find_package.html
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake