diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-24 15:08:52 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-24 15:26:41 +0100 |
commit | 1fbbb6bb7a00e36d4e847a087f01b50c0c728125 (patch) | |
tree | e6de76b172f69b80bf16e223eec765365b0c25eb /ConfigureChecks.cmake | |
parent | 83df9ef9555ea810992c6b65169da4d504da5681 (diff) | |
download | gwenview-i18n-1fbbb6bb7a00e36d4e847a087f01b50c0c728125.tar.gz gwenview-i18n-1fbbb6bb7a00e36d4e847a087f01b50c0c728125.zip |
Conversion to the CMake building system.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3b5c4c74473e99bee211d454d857fe325b4c55aa)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..7fff420 --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,27 @@ +########################################### +# # +# Improvements and feedback are welcome # +# # +# This file is released under GPL >= 3 # +# # +########################################### + + +# required stuff +find_package( TQt ) +find_package( TDE ) + + +##### 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 ) |