diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-26 02:12:24 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-26 02:12:24 +0100 |
commit | 05a436ed6996f045f78dd2007822cb18ebff4286 (patch) | |
tree | 368425a37a6f61302806f91393dd4d505ab446b4 /ConfigureChecks.cmake | |
parent | 81526cafd5e61d28671a60ca454b3ec6ad08d71c (diff) | |
download | tdeio-ftps-05a436ed6996f045f78dd2007822cb18ebff4286.tar.gz tdeio-ftps-05a436ed6996f045f78dd2007822cb18ebff4286.zip |
Add CMakeL10n rules.
Create translation template.
Add CMake rules to build translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 4b2708e..4d71bba 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -29,6 +29,21 @@ if( WITH_GCC_VISIBILITY ) endif( WITH_GCC_VISIBILITY ) +##### gettext + +if( BUILD_TRANSLATIONS ) + include( FindGettext ) + if( GETTEXT_FOUND ) + set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE} + CACHE FILEPATH "path to msgfmt executable" ) + endif( GETTEXT_FOUND ) + + if( NOT MSGFMT_EXECUTABLE ) + tde_message_fatal( "msgfmt is required but was not found on your system." ) + endif( NOT MSGFMT_EXECUTABLE ) +endif( BUILD_TRANSLATIONS ) + + #### check for headers check_include_file( "sys/select.h" HAVE_SYS_SELECT_H ) |