On Thu, Jan 8, 2015 at 12:46 PM, Gonzalo Garramuno <ggarr...@gmail.com> wrote:
> I have a cmake file to build my project (mrViewer). The project has > additional script files that are not mentioned in my cmake file. > The project also has dependencies on c libraries installed elsewhere > (/usr/local, etc). > > The tgz,deb and rpm files currently contain just the main executable after > a: > > ADD_EXECUTABLE( mrViewer WIN32 ${SOURCES} ) > TARGET_LINK_LIBRARIES( mrViewer ${LIBRARIES} ) > INSTALL( TARGETS mrViewer > RUNTIME DESTINATION bin > LIBRARY DESTINATION lib > ) > > # this will put the directory'scripts' into bin... resulting with bin/scripts/* install(DIRECTORY scripts DESTINATION bin ) # with a trailing slash on the name, the name is not included... so you can rename # the source directory on the way out... install(DIRECTORY script_sources/ DESTINATION bin/scripts ) > What I would like to have is a cmake sample file that shows how to: > > a) Install the script files respecting its local location. > b) Install the c libraries in a local lib directory. > > for cpack packaging. > http://www.cmake.org/Wiki/CMake:Packaging_With_CPack a lot of SET()... followed by include( CPack ) > > Thank you very much in advance, > > Gonzalo > -- > > 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 >
-- 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