Signed-off-by: Slávek Banko <slavek.banko@axis.cz>pull/1/head
parent
4b5f63264e
commit
3b5c4c7447
@ -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( )
|
@ -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 )
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG da
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG de
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,6 @@
|
||||
###### the handbook seems incomplete - the index is missing
|
||||
|
||||
# tde_create_handbook(
|
||||
# DESTINATION gwenview
|
||||
# LANG es
|
||||
# )
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG et
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG fr
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG it
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG nl
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG pl
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG pt
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG pt_BR
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG ru
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
@ -0,0 +1,4 @@
|
||||
tde_create_handbook(
|
||||
DESTINATION gwenview
|
||||
LANG sv
|
||||
)
|
Loading…
Reference in new issue