[cmake-developers] Making Config.cmake files easier to write

Alexander Neundorf neundorf at kde.org
Sat Feb 18 13:12:16 EST 2012


On Saturday 18 February 2012, Eric Noulard wrote:
...
> >>> include(CMakePackageConfigHelpers)
> >>> create_and_install_package_config_files(NAME Foo
> >>>                    CONFIG_TEMPLATE FooConfig.cmake.in
> >>>                    DESTINATION ${LIB_INSTALL_DIR}/Foo/cmake
> >>>                    PATH_VARS INCLUDE_INSTALL_DIR SYSCONFIG_INSTALL_DIR
> >>>                    VERSION 1.2.3
> >>>                    VERSION_COMPATIBILITY SameMajorVersion)
> 
> [...]
> 
> > So the point is, is there any usefulness from the CMake user point of
> > view, in providing such higher-level (but less powerful) API for CMake
> > config file at all.
> 
> No obvious sign of interest for this idea on the list.
> I won't work on "create_and_install_package_config_files" and rather
> continue my work on improving CPack doc.
> 
> May come to that later after Alex's macros has been merged to master.

<sign of interest />  ;-)

Alex



More information about the cmake-developers mailing list