diff --git a/modules/gfx/pymod/CMakeLists.txt b/modules/gfx/pymod/CMakeLists.txt index 9cf5614851a11d7eb449e88f2a5b075352d9a6c5..52eac70f7c440e256ffbb9a604eb7a23195c26c0 100644 --- a/modules/gfx/pymod/CMakeLists.txt +++ b/modules/gfx/pymod/CMakeLists.txt @@ -17,4 +17,12 @@ if (ENABLE_IMG) set(OST_GFX_PYMOD_SOURCES ${OST_GFX_PYMOD_SOURCES} export_map.cc) endif() -pymod(NAME gfx CPP ${OST_GFX_PYMOD_SOURCES} PY __init__.py) \ No newline at end of file +pymod(NAME gfx CPP ${OST_GFX_PYMOD_SOURCES} PY __init__.py) + +set(GRADIENT_FILE + gradients.xml +) +copy_if_different("./" "${STAGE_DIR}/share/openstructure/scene" + "${GRADIENT_FILE}" "PRESET GRADIENTS" _gfx) + +install(FILES ${GRADIENT_FILE} DESTINATION "share/openstructure/scene") \ No newline at end of file diff --git a/modules/gui/pymod/scene/gradients.xml b/modules/gfx/pymod/gradients.xml similarity index 100% rename from modules/gui/pymod/scene/gradients.xml rename to modules/gfx/pymod/gradients.xml diff --git a/modules/gui/pymod/CMakeLists.txt b/modules/gui/pymod/CMakeLists.txt index 077545a9a8f01e93d364dd29ec79f4ef2a661425..c3006bbcab2dc1ddcbfbb77c03825ef36afcd6a3 100644 --- a/modules/gui/pymod/CMakeLists.txt +++ b/modules/gui/pymod/CMakeLists.txt @@ -88,7 +88,6 @@ pymod(NAME gui CPP ${OST_GUI_PYMOD_SOURCES} ${OST_GUI_PYMOD_MODULES}) set(PRESET_FILES - scene/gradients.xml scene/presets.xml scene/loaders.xml )