Commit dfdfe602 authored by Fabio Bas's avatar Fabio Bas
Browse files

Properly install sounds and zonebg files

parent 84fe5f46
...@@ -2,5 +2,15 @@ ...@@ -2,5 +2,15 @@
# #
# Installs default sound files # Installs default sound files
FILE(GLOB sounds "${CMAKE_CURRENT_SOURCE_DIR}/sounds/*.raw") FILE(GLOB sounds "${CMAKE_CURRENT_SOURCE_DIR}/*.raw")
INSTALL(FILES ${sounds} DESTINATION share/cockatrice/sounds)
if(UNIX)
if(APPLE)
INSTALL(FILES ${sounds} DESTINATION ${CMAKE_INSTALL_PREFIX}/sounds)
else()
# Assume linux
INSTALL(FILES ${sounds} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cockatrice/sounds)
endif()
elseif(WIN32)
INSTALL(FILES ${sounds} DESTINATION ${CMAKE_INSTALL_PREFIX}/sounds)
endif()
\ No newline at end of file
...@@ -2,5 +2,15 @@ ...@@ -2,5 +2,15 @@
# #
# Installs default "zone background" files # Installs default "zone background" files
FILE(GLOB zonebg "${CMAKE_CURRENT_SOURCE_DIR}/zonebg/*.*") FILE(GLOB zonebg "${CMAKE_CURRENT_SOURCE_DIR}/*.*")
INSTALL(FILES ${zonebg} DESTINATION share/cockatrice/zonebg)
if(UNIX)
if(APPLE)
INSTALL(FILES ${zonebg} DESTINATION ${CMAKE_INSTALL_PREFIX}/zonebg)
else()
# Assume linux
INSTALL(FILES ${zonebg} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cockatrice/zonebg)
endif()
elseif(WIN32)
INSTALL(FILES ${zonebg} DESTINATION ${CMAKE_INSTALL_PREFIX}/zonebg)
endif()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment