Make install paths relative to prepare for CPack

This commit is contained in:
Fabio Bas 2014-06-12 23:29:42 +02:00
parent dfdfe60202
commit eca318c34d
5 changed files with 24 additions and 53 deletions

View file

@ -6,11 +6,11 @@ FILE(GLOB sounds "${CMAKE_CURRENT_SOURCE_DIR}/*.raw")
if(UNIX)
if(APPLE)
INSTALL(FILES ${sounds} DESTINATION ${CMAKE_INSTALL_PREFIX}/sounds)
INSTALL(FILES ${sounds} DESTINATION sounds/)
else()
# Assume linux
INSTALL(FILES ${sounds} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cockatrice/sounds)
INSTALL(FILES ${sounds} DESTINATION share/cockatrice/sounds/)
endif()
elseif(WIN32)
INSTALL(FILES ${sounds} DESTINATION ${CMAKE_INSTALL_PREFIX}/sounds)
INSTALL(FILES ${sounds} DESTINATION sounds/)
endif()