diff --git a/CMakeLists.txt b/CMakeLists.txt index 64f5d4fbd7bf..53b596857fc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,3 +203,20 @@ endif () if (XTD_INSTALL_EXAMPLES) install(DIRECTORY examples/. DESTINATION share/xtd/examples) endif () + +if (XTD_INSTALL_RESOURCES) + install(DIRECTORY themes/default DESTINATION share/xtd/themes) + install(DIRECTORY themes/gnome_dark DESTINATION share/xtd/themes) + install(DIRECTORY themes/gnome_light DESTINATION share/xtd/themes) + install(DIRECTORY themes/kde_dark DESTINATION share/xtd/themes) + install(DIRECTORY themes/kde_light DESTINATION share/xtd/themes) + install(DIRECTORY themes/macos_dark DESTINATION share/xtd/themes) + install(DIRECTORY themes/macos_light DESTINATION share/xtd/themes) + install(DIRECTORY themes/symbolic_dark DESTINATION share/xtd/themes) + install(DIRECTORY themes/symbolic_light DESTINATION share/xtd/themes) + install(DIRECTORY themes/windows_dark DESTINATION share/xtd/themes) + install(DIRECTORY themes/windows_light DESTINATION share/xtd/themes) + install(DIRECTORY themes/xtd_dark DESTINATION share/xtd/themes) + install(DIRECTORY themes/xtd_light DESTINATION share/xtd/themes) + install(DIRECTORY locale DESTINATION share/xtd/locale) +endif () diff --git a/locale/CMakeLists.txt b/locale/CMakeLists.txt index 56258cccb929..6ff5eb4be5b2 100644 --- a/locale/CMakeLists.txt +++ b/locale/CMakeLists.txt @@ -86,8 +86,3 @@ add_sources( ) target_type(INTERFACE_LIBRARY) - -# Install -if (XTD_INSTALL_RESOURCES) - install(DIRECTORY . DESTINATION share/xtd/locale) -endif () diff --git a/themes/CMakeLists.txt b/themes/CMakeLists.txt index 4f7179bdfe8e..833a9714fa1e 100644 --- a/themes/CMakeLists.txt +++ b/themes/CMakeLists.txt @@ -21,20 +21,3 @@ add_projects( xtd_dark xtd_light ) - -# Install -if (XTD_INSTALL_RESOURCES) - install(DIRECTORY default DESTINATION share/xtd/themes) - install(DIRECTORY gnome_dark DESTINATION share/xtd/themes) - install(DIRECTORY gnome_light DESTINATION share/xtd/themes) - install(DIRECTORY kde_dark DESTINATION share/xtd/themes) - install(DIRECTORY kde_light DESTINATION share/xtd/themes) - install(DIRECTORY macos_dark DESTINATION share/xtd/themes) - install(DIRECTORY macos_light DESTINATION share/xtd/themes) - install(DIRECTORY symbolic_dark DESTINATION share/xtd/themes) - install(DIRECTORY symbolic_light DESTINATION share/xtd/themes) - install(DIRECTORY windows_dark DESTINATION share/xtd/themes) - install(DIRECTORY windows_light DESTINATION share/xtd/themes) - install(DIRECTORY xtd_dark DESTINATION share/xtd/themes) - install(DIRECTORY xtd_light DESTINATION share/xtd/themes) -endif ()