Browse Source

Conversion to the CMake building system.

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

+ 65
- 0
CMakeLists.txt View File

@@ -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
- 0
ConfigureChecks.cmake View File

@@ -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
- 0
da/CMakeLists.txt View File

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

+ 4
- 0
da/doc/CMakeLists.txt View File

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

+ 1
- 0
de/CMakeLists.txt View File

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

+ 4
- 0
de/doc/CMakeLists.txt View File

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

+ 1
- 0
es/CMakeLists.txt View File

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

+ 6
- 0
es/doc/CMakeLists.txt View File

@@ -0,0 +1,6 @@
###### the handbook seems incomplete - the index is missing

# tde_create_handbook(
# DESTINATION gwenview
# LANG es
# )

+ 1
- 0
et/CMakeLists.txt View File

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

+ 4
- 0
et/doc/CMakeLists.txt View File

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

+ 1
- 0
fr/CMakeLists.txt View File

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

+ 4
- 0
fr/doc/CMakeLists.txt View File

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

+ 1
- 0
it/CMakeLists.txt View File

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

+ 4
- 0
it/doc/CMakeLists.txt View File

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

+ 1
- 0
nl/CMakeLists.txt View File

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

+ 4
- 0
nl/doc/CMakeLists.txt View File

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

+ 1
- 0
pl/CMakeLists.txt View File

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

+ 4
- 0
pl/doc/CMakeLists.txt View File

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

+ 1
- 0
pt/CMakeLists.txt View File

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

+ 4
- 0
pt/doc/CMakeLists.txt View File

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

+ 1
- 0
pt_BR/CMakeLists.txt View File

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

+ 4
- 0
pt_BR/doc/CMakeLists.txt View File

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

+ 1
- 0
ru/CMakeLists.txt View File

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

+ 4
- 0
ru/doc/CMakeLists.txt View File

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

+ 1
- 0
sv/CMakeLists.txt View File

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

+ 4
- 0
sv/doc/CMakeLists.txt View File

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

Loading…
Cancel
Save