mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 08:41:13 +08: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
|
@ -73,3 +73,6 @@ add_custom_target(signed_fish_macapp
|
|||
$<TARGET_BUNDLE_DIR:fish_macapp>
|
||||
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
|
||||
if(GETTEXT_FOUND)
|
||||
# Group pofile targets into their own folder, as there's a lot of them.
|
||||
set(CMAKE_FOLDER pofiles)
|
||||
foreach(lang ${languages})
|
||||
# Our translations aren't set up entirely as CMake expects, so installation is done in
|
||||
# cmake/Install.cmake instead of using INSTALL_DESTINATION
|
||||
gettext_process_po_files(${lang} ALL
|
||||
PO_FILES po/${lang}.po)
|
||||
endforeach()
|
||||
set(CMAKE_FOLDER)
|
||||
endif()
|
||||
|
||||
cmake_push_check_state()
|
||||
|
|
Loading…
Reference in New Issue
Block a user