Added libzlcore-data-tqt cmake files
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/1/head
parent
102f8c1e4f
commit
247d5d3bd6
@ -0,0 +1,77 @@
|
||||
############################################
|
||||
# #
|
||||
# Improvements and feedbacks are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
|
||||
##### set project version ########################
|
||||
|
||||
include( TDEVersion )
|
||||
cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
|
||||
tde_set_project_version( )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( tde-ebook-reader )
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckSymbolExists )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckCSourceCompiles )
|
||||
include( CheckCXXSourceCompiles )
|
||||
|
||||
|
||||
#### include our cmake modules
|
||||
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### setup install paths
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### optional stuff
|
||||
|
||||
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||
|
||||
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
|
||||
##### user requested modules
|
||||
|
||||
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 )
|
||||
|
||||
|
||||
###### global compiler settings
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
|
||||
|
||||
##### directories
|
||||
|
||||
add_subdirectory( zlibrary )
|
||||
#add_subdirectory( tde-ebook-reader )
|
||||
|
||||
|
||||
##### write configure files
|
||||
|
||||
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,25 @@
|
||||
###########################################
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
|
||||
# required stuff
|
||||
find_package( TQt )
|
||||
|
||||
tde_setup_architecture_flags( )
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
tde_setup_largefiles( )
|
||||
|
||||
|
||||
##### check for gcc visibility support
|
||||
|
||||
if( WITH_GCC_VISIBILITY )
|
||||
tde_setup_gcc_visibility( )
|
||||
endif( WITH_GCC_VISIBILITY )
|
@ -0,0 +1,8 @@
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||
|
||||
// Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
// significant byte first (like Motorola and SPARC, unlike Intel).
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
@ -0,0 +1 @@
|
||||
10
|
@ -1 +1 @@
|
||||
#usr/share/zlibrary
|
||||
/usr/share/zlibrary-tqt
|
||||
|
@ -0,0 +1,14 @@
|
||||
|
||||
##### zlibrary-tqt install path
|
||||
|
||||
_tde_internal_setup_path(
|
||||
ZLIB_SHARE_INSTALL_PREFIX "${CMAKE_ZLIBRARY_INSTALL_PREFIX}/share/zlibrary-tqt"
|
||||
"Base directory for zlibrary-tqt files which go to share/"
|
||||
)
|
||||
|
||||
|
||||
##### subfolders
|
||||
|
||||
add_subdirectory( core )
|
||||
#add_subdirectory( text )
|
||||
#add_subdirectory( ui )
|
@ -0,0 +1,24 @@
|
||||
|
||||
##### install data files
|
||||
|
||||
install(
|
||||
FILES data/languagePatterns.zip data/unicode.xml.gz
|
||||
DESTINATION ${ZLIB_SHARE_INSTALL_PREFIX}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES data/config.xml
|
||||
DESTINATION ${ZLIB_SHARE_INSTALL_PREFIX}/default
|
||||
)
|
||||
|
||||
file( GLOB _enconding_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/data/encodings/* )
|
||||
install(
|
||||
FILES ${_enconding_files}
|
||||
DESTINATION ${ZLIB_SHARE_INSTALL_PREFIX}/encodings
|
||||
)
|
||||
|
||||
file( GLOB _resources_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/data/resources/*.xml )
|
||||
install(
|
||||
FILES ${_resources_files}
|
||||
DESTINATION ${ZLIB_SHARE_INSTALL_PREFIX}/resources
|
||||
)
|
Loading…
Reference in New Issue