summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-i18n.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-28 03:03:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:18 +0100
commit7e07b216d6dddc2bd832bf85e2e5870cd4e48638 (patch)
treeff1dbed1c79d99288b15d868fb8ac5dd7a4cccb6 /cmake/opentrack-i18n.cmake
parent6f04e4ca46e6f2dcd3eda63529a1bbd915f7676b (diff)
cmake: try add Visual Studio folders for boilerplate targets
Diffstat (limited to 'cmake/opentrack-i18n.cmake')
-rw-r--r--cmake/opentrack-i18n.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index d08f9a99..1d471fb2 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -1,7 +1,9 @@
include_guard(GLOBAL)
add_custom_target(i18n-lupdate)
+set_property(TARGET i18n-lupdate PROPERTY FOLDER "i18n")
add_custom_target(i18n-lrelease DEPENDS i18n-lupdate)
+set_property(TARGET i18n-lrelease PROPERTY FOLDER "i18n")
add_custom_target(i18n ALL DEPENDS i18n-lrelease)
function(otr_i18n_for_target_directory n)
@@ -43,6 +45,7 @@ function(otr_i18n_for_target_directory n)
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
set(target-name "i18n-module-${n}")
add_custom_target(${target-name} DEPENDS "${stamp}" COMMENT "")
+ set_property(TARGET ${target-name} PROPERTY FOLDER "i18n")
add_dependencies(i18n-lupdate ${target-name})
endfunction()
@@ -76,7 +79,8 @@ function(otr_merge_translations)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
set(target-name i18n-qm-${i})
- add_custom_target("${target-name}" DEPENDS "${qm-output}")
+ add_custom_target(${target-name} DEPENDS "${qm-output}")
+ set_property(TARGET ${target-name} PROPERTY FOLDER "i18n")
add_dependencies(i18n-lrelease ${target-name})
install(FILES "${qm-output}"