Take CMake rules from tdegraphics.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 years ago
parent 1fba951d41
commit 64f5797528
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -0,0 +1,78 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.8.12 )
##### general package setup #####################
project( kuickshow )
set( VERSION R14.1.0 )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckTypeSize )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
include( CheckLibraryExists )
include( CheckSymbolExists )
##### 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( 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" OFF )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions( -DHAVE_CONFIG_H )
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" )
##### tdegraphics directories ###################
tde_conditional_add_subdirectory( BUILD_DOC doc )
add_subdirectory( kuickshow )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,29 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# required stuff
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
find_package( TQt )
find_package( TDE )
##### check for gcc visibility support #########
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )

@ -1 +1 @@
Subproject commit 83f68e199a1d3517ff273e93ad42977acf5a617a
Subproject commit 8c7e0d40de084fe5d54e173918756639e0d4d63e

@ -1 +1 @@
Subproject commit e5692c8bdbde55e425a1ec60601680d1114b909d
Subproject commit f0a5bcc7600c36f8fe59754d1167d1bbc70a4953

@ -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,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_auto_add_subdirectories( )

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_create_handbook( DESTINATION kuickshow )

@ -0,0 +1,16 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include( ConfigureChecks.cmake )
add_subdirectory( src )
add_subdirectory( misc )
add_subdirectory( pics )

@ -0,0 +1,16 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# imlib
pkg_search_module( IMLIB imlib )
if( NOT IMLIB_FOUND )
tde_message_fatal( "imlib is required, but was not found on your system" )
endif( )

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES im_palette.pal DESTINATION ${DATA_INSTALL_DIR}/kuickshow )

@ -0,0 +1,16 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
calibrate.png kuickshow-day.jpg kuickshow-night.jpg logo.png
imageviewer-medium.png imageviewer-small.png handcursor.png
ksslide.png about.png
DESTINATION ${DATA_INSTALL_DIR}/kuickshow/pics )

@ -0,0 +1,41 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${IMLIB_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${IMLIB_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( kuickshow )
tde_create_translated_desktop( kuickshow.desktop )
##### kuickshow (tdeinit) #######################
tde_add_tdeinit_executable( kuickshow AUTOMOC
SOURCES
kuickshow.cpp aboutwidget.cpp generalwidget.cpp kuickconfigdlg.cpp
main.cpp defaultswidget.cpp imagewindow.cpp kuickdata.cpp
imdata.cpp filefinder.cpp kurlwidget.cpp filewidget.cpp kuick.cpp
imlibwidget.cpp slideshowwidget.cpp printing.cpp kuickfile.cpp
kuickimage.cpp filecache.cpp
LINK tdeprint-shared ${IMLIB_LIBRARIES}
)
Loading…
Cancel
Save