2018-12-08 01:46:08 +01:00
|
|
|
SET(DATADIR "${CMAKE_INSTALL_PREFIX}/share/${LIBSUPERDERPY_GAMENAME}/data")
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
SET(DATADIR "${CMAKE_INSTALL_PREFIX}/bin/${LIBSUPERDERPY_GAMENAME}.app/Contents/Resources/data") #OMG NASTY
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
add_subdirectory(icons)
|
|
|
|
|
|
|
|
if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID)
|
2018-12-08 03:52:45 +01:00
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_GAMENAME}.desktop)
|
|
|
|
install(FILES ${LIBSUPERDERPY_GAMENAME}.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications/)
|
|
|
|
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_GAMENAME}.desktop)
|
2018-12-08 01:46:08 +01:00
|
|
|
|
2018-12-08 03:52:45 +01:00
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_APPID}.appdata.xml)
|
|
|
|
install(FILES ${LIBSUPERDERPY_APPID}.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo/)
|
|
|
|
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_APPID}.appdata.xml)
|
2018-12-08 01:46:08 +01:00
|
|
|
endif(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID)
|
|
|
|
|
|
|
|
install(DIRECTORY . DESTINATION ${DATADIR}
|
|
|
|
PATTERN "stuff" EXCLUDE
|
|
|
|
PATTERN ".git" EXCLUDE
|
|
|
|
PATTERN ".gitignore" EXCLUDE
|
|
|
|
PATTERN ".directory" EXCLUDE
|
|
|
|
PATTERN "CMakeLists.txt" EXCLUDE)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE RES_FILES *)
|
|
|
|
add_custom_target(data SOURCES ${RES_FILES})
|