fix install locations for Raytracing and Start module

This commit is contained in:
wmayer
2018-09-11 10:17:53 +02:00
parent 3caa2fe467
commit 28c57af9a3
3 changed files with 38 additions and 26 deletions

View File

@@ -48,6 +48,6 @@ INSTALL(
FILES
${Raytracing_Templates}
DESTINATION
${CMAKE_INSTALL_DATADIR}/Mod/Raytracing
${CMAKE_INSTALL_DATADIR}/Mod/Raytracing/Templates
)

View File

@@ -5,30 +5,6 @@ set(Start_Scripts
)
if(BUILD_GUI)
SET(StartPage_Scripts
StartPage.py
TranslationTexts.py
__init__.py
)
SET(StartPage_Resources
LoadMRU.py
LoadExample.py
LoadNew.py
LoadCustom.py
StartPage.css
StartPage.js
StartPage.html
EnableDownload.py
images/userhub.png
images/poweruserhub.png
images/developerhub.png
images/manual.png
images/freecad.png
images/installed.png
images/new_file_thumbnail.svg
)
list(APPEND Start_Scripts InitGui.py)
add_subdirectory(Gui)

View File

@@ -1,4 +1,36 @@
SET(StartPage_Scripts
StartPage.py
TranslationTexts.py
__init__.py
)
SET(StartPage_PythonResources
LoadMRU.py
LoadExample.py
LoadNew.py
LoadCustom.py
StartPage.css
StartPage.js
StartPage.html
EnableDownload.py
)
SET(StartPage_ImageResources
images/userhub.png
images/poweruserhub.png
images/developerhub.png
images/manual.png
images/freecad.png
images/installed.png
images/new_file_thumbnail.svg
)
SET(StartPage_Resources
${StartPage_PythonResources}
${StartPage_ImageResources}
)
add_custom_target(StartPage ALL
SOURCES ${StartPage_Scripts} ${StartPage_Resources}
)
@@ -17,7 +49,11 @@ INSTALL(FILES ${StartPage_Scripts}
DESTINATION Mod/Start/StartPage
)
INSTALL(FILES ${StartPage_Resources}
INSTALL(FILES ${StartPage_PythonResources}
DESTINATION ${CMAKE_INSTALL_DATADIR}/Mod/Start/StartPage
)
INSTALL(FILES ${StartPage_ImageResources}
DESTINATION ${CMAKE_INSTALL_DATADIR}/Mod/Start/StartPage/images
)