Skip to content

Commit

Permalink
Fix xtd install
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 1, 2023
1 parent f10429e commit c139114
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
5 changes: 0 additions & 5 deletions locale/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,3 @@ add_sources(
)

target_type(INTERFACE_LIBRARY)

# Install
if (XTD_INSTALL_RESOURCES)
install(DIRECTORY . DESTINATION share/xtd/locale)
endif ()
17 changes: 0 additions & 17 deletions themes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit c139114

Please sign in to comment.