[CMake] how to install a cmake module ?
David Cole
david.cole at kitware.com
Fri Jan 6 07:04:09 EST 2006
How about a POST_INSTALL_SCRIPT via SET_TARGET_PROPERTIES for one of
your installed targets? Then your script could configure/copy that file
to that spot as long as you have write permissions. The problem will be
that a non-admin user won't have write permissions to an admin install
of CMake...
Hope this helps,
David
Alexander Neundorf wrote:
>Hi,
>
>I'd like to do the following:
>
>INSTALL_FILES(${CMAKE_ROOT}/Modules/ FILES
>${CMAKE_CURRENT_SOURCE_DIR}/FindMyModule.cmake)
>
>This is currently not possible, because the dir is always relative to the
>install dir. With CONFIGURE_FILE() it is already done during cmake time,
>not make install time.
>Any suggestions ?
>
>Bye
>Alex
>
>
>
>
More information about the CMake
mailing list