Browse Source

Conversion to the CMake building system.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 years ago
parent
commit
3b5c4c7447
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
  1. 65
      CMakeLists.txt
  2. 27
      ConfigureChecks.cmake
  3. 1
      da/CMakeLists.txt
  4. 4
      da/doc/CMakeLists.txt
  5. 1
      de/CMakeLists.txt
  6. 4
      de/doc/CMakeLists.txt
  7. 1
      es/CMakeLists.txt
  8. 6
      es/doc/CMakeLists.txt
  9. 1
      et/CMakeLists.txt
  10. 4
      et/doc/CMakeLists.txt
  11. 1
      fr/CMakeLists.txt
  12. 4
      fr/doc/CMakeLists.txt
  13. 1
      it/CMakeLists.txt
  14. 4
      it/doc/CMakeLists.txt
  15. 1
      nl/CMakeLists.txt
  16. 4
      nl/doc/CMakeLists.txt
  17. 1
      pl/CMakeLists.txt
  18. 4
      pl/doc/CMakeLists.txt
  19. 1
      pt/CMakeLists.txt
  20. 4
      pt/doc/CMakeLists.txt
  21. 1
      pt_BR/CMakeLists.txt
  22. 4
      pt_BR/doc/CMakeLists.txt
  23. 1
      ru/CMakeLists.txt
  24. 4
      ru/doc/CMakeLists.txt
  25. 1
      sv/CMakeLists.txt
  26. 4
      sv/doc/CMakeLists.txt

65
CMakeLists.txt

@ -0,0 +1,65 @@
#################################################
#
# (C) 2018 Slávek Banko
# slavek.banko (AT) axis.cz
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.8 )
##### general package setup #####################
project( gwenview-i18n )
set( VERSION R14.1.0 )
##### include essential cmake modules ###########
include( FindPkgConfig )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff ############################
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
###### build translations for all languages #####
if( BUILD_TRANSLATIONS )
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} */messages/*.po )
foreach( _po ${po_files} )
string( REPLACE "/" ";" _path "${_po}" )
list( GET _path 0 _lang )
tde_create_translation( FILES ${_po} LANG ${_lang} )
endforeach( )
endif( )
###### subdirectories ###########################
tde_auto_add_subdirectories( )

27
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 )

1
da/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
da/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG da
)

1
de/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
de/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG de
)

1
es/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

6
es/doc/CMakeLists.txt

@ -0,0 +1,6 @@
###### the handbook seems incomplete - the index is missing
# tde_create_handbook(
# DESTINATION gwenview
# LANG es
# )

1
et/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
et/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG et
)

1
fr/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
fr/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG fr
)

1
it/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
it/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG it
)

1
nl/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
nl/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG nl
)

1
pl/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
pl/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG pl
)

1
pt/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
pt/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG pt
)

1
pt_BR/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
pt_BR/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG pt_BR
)

1
ru/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
ru/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG ru
)

1
sv/CMakeLists.txt

@ -0,0 +1 @@
tde_conditional_add_subdirectory( BUILD_DOC doc )

4
sv/doc/CMakeLists.txt

@ -0,0 +1,4 @@
tde_create_handbook(
DESTINATION gwenview
LANG sv
)
Loading…
Cancel
Save