Basically this is the command I use to install some plugins...
BINARY_OUTPUT_DIR is ${CMAKE_INSTALL_PREFIX}/bin
project_target is a argument to the macro and it's 'plugins'


    install( TARGETS ${proj} ·
        RUNTIME DESTINATION ${BINARY_OUTPUT_DIR}/${project_target} ·
        LIBRARY DESTINATION ${BINARY_OUTPUT_DIR}/${project_target} ·
        ARCHIVE DESTINATION lib·
        )·


(expanded example)
    install( TARGETS tasks.isp ·
        RUNTIME DESTINATION bin/plugins
        LIBRARY DESTINATION bin/plugins
        ARCHIVE DESTINATION lib·
        )·

This is basically the target defintiion....

add_library(tasks.isp SHARED ${SOURCES} )
SET_TARGET_PROPERTIES(tasks.isp PROPERTIES
                  SUFFIX ""
                  PREFIX ""
)


-----
the library is built 'tasks.isp' with rwxr-xr-x
but it's installed with rw-r--r--

(platform is rasberry pi)
cmake version is 3.2.2 (custom build, version in apt-get is only 2.8
something)
-- 

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

Reply via email to