[CMake] granular install advice

luxInteg lux-integ at btconnect.com
Fri Dec 17 09:31:18 EST 2010


Greetings,

I am learning cmake.

If I were to have  some  homebrewed "ModulesForCMakeIdiots.cmake" from my 
learning project in say ${CMAKE_SOURCE_DIR}/modules
and I set this command:-

install(FILES ${CMAKE_SOURCE_DIR}/modules/*.cmake /usr/local/someplace )

do be done  AT INSTALL time  
(i.e. I want to  install the modules on  the file syatem say 
/usr/local/someplace) -the above is like to   copy   the modules to 
${INSTALL_PREFIX}/usr/local/someplace.

So how do I  tell cmake to  copy to   /usr/local/someplace instead?


advice would be appreciated
luxInteg 


More information about the CMake mailing list