2011/12/28 vivek goel <[email protected]>:
> I am installing static file using cmake INSTALL command
>
> I want to post process the output file using cmake
>
> example
>
> Static files are having string like v={{VERSION}}
>
> I want to replace {{VERSION}} in the output files.
>
> Is it possible with cmake ? using utility like sed.
You should try to use
configure_file
cmake command.
You'll need to replace {{VERSION}} in your static files with @VERSION@.
You may then
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/static_file.in
${CMAKE_CURRENT_BINARY_DIR}/static_file @ONLY)
install(${CMAKE_CURRENT_BINARY_DIR}/static_file DESTINATION ...)
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake