Exheredludis/ruby/demos/CMakeLists.txt
Heiko Becker e8889f3e5c build: Install bash scripts as 'PROGRAMS'
...to make them executable.
2016-12-05 18:35:04 -08:00

19 lines
674 B
CMake

if(ENABLE_RUBY)
install(CODE
"
execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${CMAKE_INSTALL_FULL_DATADIR}/paludis/ruby/demos/playman.rb\" \"${CMAKE_CURRENT_BINARY_DIR}/playman\")
")
install(PROGRAMS
"${CMAKE_CURRENT_SOURCE_DIR}/version_spec_distributions.rb"
"${CMAKE_CURRENT_SOURCE_DIR}/latest_stable.rb"
"${CMAKE_CURRENT_SOURCE_DIR}/playman.rb"
DESTINATION
"${CMAKE_INSTALL_FULL_DATADIR}/paludis/ruby/demos")
install(PROGRAMS
"${CMAKE_CURRENT_BINARY_DIR}/playman"
DESTINATION
"${CMAKE_INSTALL_FULL_BINDIR}")
endif()