WSL/SLF GitLab Repository

Commit 4422b462 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Improved the location of the resources files

parent 4667bf76
......@@ -93,10 +93,15 @@ CONFIGURE_FILE(
ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
#for the install target
SET(XML_DEST inishell-apps)
IF((UNIX) AND (NOT APPLE))
SET(XML_DEST share/inishell-apps)
ENDIF()
FILE(GLOB xmlfiles "inishell-apps/*.xml")
INSTALL(FILES ${xmlfiles} DESTINATION inishell-apps COMPONENT resources)
INSTALL(FILES ${xmlfiles} DESTINATION ${XML_DEST} COMPONENT resources)
FILE(GLOB pngfiles "inishell-apps/*.png")
INSTALL(FILES ${pngfiles} DESTINATION inishell-apps COMPONENT resources)
INSTALL(FILES ${pngfiles} DESTINATION ${XML_DEST} COMPONENT resources)
IF(WIN32)
FILE(GLOB dlls "bin/*.dll")
INSTALL(FILES ${dlls} DESTINATION bin COMPONENT exe)
......@@ -186,7 +191,7 @@ ELSE(UNIX)
#Main links (they can get overwritten later)
SET(MENU_LINKS_INISHELL "bin/inishell.exe" "Inishell")
SET(MENU_LINKS_INISHELL_APPS "inishell-apps" "Inishell XML files")
SET(MENU_LINKS_INISHELL_APPS ${XML_DEST} "Inishell XML files")
SET(MENU_LINKS_INISHELL_HOME "https://models.slf.ch/p/inishell-ng" "Inishell's home page" )
SET(MENU_LINKS_INISHELL_SRC "https://code.wsl.ch/snow-models/inishell" "Inishell's repository")
......
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