Let CMake determine the location of the targets to install

issue1247
Kevin Zheng 2014-05-26 19:53:59 -05:00 committed by Günther Brammer
parent e73de734d1
commit e129005b0e
1 changed files with 2 additions and 2 deletions

View File

@ -1558,8 +1558,8 @@ if (NOT APPLE)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION share/applications)
# Install binaries
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/openclonk DESTINATION games/)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/c4group DESTINATION bin/)
install(TARGETS openclonk DESTINATION games)
install(TARGETS c4group DESTINATION bin)
else()
install(TARGETS openclonk
BUNDLE DESTINATION .