Internationalization (i18n) for Gwenview
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

66 lines
1.4 KiB

  1. #################################################
  2. #
  3. # (C) 2018 Slávek Banko
  4. # slavek.banko (AT) axis.cz
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. cmake_minimum_required( VERSION 2.8 )
  12. ##### general package setup #####################
  13. project( gwenview-i18n )
  14. set( VERSION R14.1.0 )
  15. ##### include essential cmake modules ###########
  16. include( FindPkgConfig )
  17. ##### include our cmake modules #################
  18. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  19. include( TDEMacros )
  20. ##### setup install paths #######################
  21. include( TDESetupPaths )
  22. tde_setup_paths( )
  23. ##### optional stuff ############################
  24. option( BUILD_ALL "Build all" ON )
  25. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  26. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  27. ##### configure checks
  28. include( ConfigureChecks.cmake )
  29. ###### build translations for all languages #####
  30. if( BUILD_TRANSLATIONS )
  31. file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} */messages/*.po )
  32. foreach( _po ${po_files} )
  33. string( REPLACE "/" ";" _path "${_po}" )
  34. list( GET _path 0 _lang )
  35. tde_create_translation( FILES ${_po} LANG ${_lang} )
  36. endforeach( )
  37. endif( )
  38. ###### subdirectories ###########################
  39. tde_auto_add_subdirectories( )