mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Group certain cmake targets into folders
This makes folders in IDEs for certain Mac and gettext targets, reducing the number of targets which appear at top-level.
This commit is contained in:
parent
1b950f5f3b
commit
43cc99e1ba
2 changed files with 6 additions and 0 deletions
|
@ -73,3 +73,6 @@ add_custom_target(signed_fish_macapp
|
||||||
$<TARGET_BUNDLE_DIR:fish_macapp>
|
$<TARGET_BUNDLE_DIR:fish_macapp>
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Group our targets in a folder.
|
||||||
|
set_property(TARGET fish_macapp signed_fish_macapp PROPERTY FOLDER macapp)
|
||||||
|
|
|
@ -15,12 +15,15 @@ add_feature_info(gettext GETTEXT_FOUND "translate messages with gettext")
|
||||||
|
|
||||||
# Define translations
|
# Define translations
|
||||||
if(GETTEXT_FOUND)
|
if(GETTEXT_FOUND)
|
||||||
|
# Group pofile targets into their own folder, as there's a lot of them.
|
||||||
|
set(CMAKE_FOLDER pofiles)
|
||||||
foreach(lang ${languages})
|
foreach(lang ${languages})
|
||||||
# Our translations aren't set up entirely as CMake expects, so installation is done in
|
# Our translations aren't set up entirely as CMake expects, so installation is done in
|
||||||
# cmake/Install.cmake instead of using INSTALL_DESTINATION
|
# cmake/Install.cmake instead of using INSTALL_DESTINATION
|
||||||
gettext_process_po_files(${lang} ALL
|
gettext_process_po_files(${lang} ALL
|
||||||
PO_FILES po/${lang}.po)
|
PO_FILES po/${lang}.po)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
set(CMAKE_FOLDER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
|
|
Loading…
Reference in a new issue