[CMake] Howto install executables that aren't targets

J Decker d3ck0r at gmail.com
Wed Mar 9 10:44:20 EST 2016


use INSTALL( PROGRAMS ) ...  FILES drops executable bit on linux

On Wed, Mar 9, 2016 at 5:38 AM, J. Caleb Wherry <calebwherry at gmail.com> wrote:
> "install(FILES..." should work, that is how you install non-target files.
> Are you sure it isn't a permission issue? Do other install commands work
> that copy to /usr/bin?
>
> We'll need a little more information to diagnose the issue, an simple CMake
> example would be nice.
>
> Caleb
>
>
> On Wednesday, March 9, 2016, Winfried <winkus4u at arcor.de> wrote:
>>
>> Hi,
>> the build system of a qt-based visual robot programming teaching platform
>> shall be ported from autotools to cmake.
>> For the build process of the platform the underlying compilers and some
>> shell scripts aiming diffenent robot targets are not built but just have
>> to
>> be installed (copied) to /usr/bin.
>>
>> I tried different ways to do this:
>> install(FILES <filenames> DESTINATION /usr/bin)
>> ----->  file INSTALL cannot copy file
>>   "/opt/build/tuxminds_3.96_cmake/tools/tuxm_aar-04_make.sh" to
>>   "/usr/bin/tuxm_aar-04_make.sh".
>>
>> install(TARGETS <filenames> RUNTIME DESTINATION /usr/bin)
>> ----->  install TARGETS given target "tuxm_aar-04_make.sh" which does not
>> exist in
>>   this directory.
>>
>> install(TARGETS ${CMAKE_CURRENT_SOURCE_DIR}/<filename_1>
>>                 ${CMAKE_CURRENT_SOURCE_DIR}/<filename_2>
>>                 ...
>>                 RUNTIME DESTINATION /usr/bin)
>> ----->  install TARGETS given target
>>   "/opt/build/tuxminds_3.96_cmake/tools/tuxm_aar-04_make.sh" which
>>   does not exist in this directory.
>>
>> (The files are located in ${CMAKE_CURRENT_SOURCE_DIR} .)
>>
>> So, I would be glad, if someone could help me with this topic.
>> Thanks in advance!
>> Winfried
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://cmake.3232098.n2.nabble.com/Howto-install-executables-that-aren-t-targets-tp7592951.html
>> Sent from the CMake mailing list archive at Nabble.com.
>> --
>>
>> 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
>
>
>
> --
> Sent from my iPhone 4s
>
> --
>
> 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


More information about the CMake mailing list