diff options
author | Slávek Banko <[email protected]> | 2018-12-24 15:08:52 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-12-24 15:08:52 +0100 |
commit | 3b5c4c74473e99bee211d454d857fe325b4c55aa (patch) | |
tree | 980d7661e1852563bf3cc379648f3a6a933875c0 /ConfigureChecks.cmake | |
parent | 4b5f63264ed191a01cfda1b23be47a951f69e2a5 (diff) | |
download | gwenview-i18n-3b5c4c74473e99bee211d454d857fe325b4c55aa.tar.gz gwenview-i18n-3b5c4c74473e99bee211d454d857fe325b4c55aa.zip |
Conversion to the CMake building system.
Signed-off-by: Slávek Banko <[email protected]>
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 ) |