summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt78
-rw-r--r--ConfigureChecks.cmake29
-rw-r--r--config.h.cmake8
-rw-r--r--doc/CMakeLists.txt12
-rw-r--r--doc/kuickshow/CMakeLists.txt12
-rw-r--r--kuickshow/CMakeLists.txt16
-rw-r--r--kuickshow/ConfigureChecks.cmake16
-rw-r--r--kuickshow/misc/CMakeLists.txt12
-rw-r--r--kuickshow/pics/CMakeLists.txt16
-rw-r--r--kuickshow/src/CMakeLists.txt41
10 files changed, 240 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..1fc0a36
--- /dev/null
+++ b/CMakeLists.txt
@@ -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.0.10 )
+
+
+##### 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 )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..09eb9b9
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -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( )
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 0000000..61ede3a
--- /dev/null
+++ b/config.h.cmake
@@ -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@
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..df842e4
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -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( )
diff --git a/doc/kuickshow/CMakeLists.txt b/doc/kuickshow/CMakeLists.txt
new file mode 100644
index 0000000..ec8123d
--- /dev/null
+++ b/doc/kuickshow/CMakeLists.txt
@@ -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 )
diff --git a/kuickshow/CMakeLists.txt b/kuickshow/CMakeLists.txt
new file mode 100644
index 0000000..57f9573
--- /dev/null
+++ b/kuickshow/CMakeLists.txt
@@ -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 )
diff --git a/kuickshow/ConfigureChecks.cmake b/kuickshow/ConfigureChecks.cmake
new file mode 100644
index 0000000..61b3645
--- /dev/null
+++ b/kuickshow/ConfigureChecks.cmake
@@ -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( )
diff --git a/kuickshow/misc/CMakeLists.txt b/kuickshow/misc/CMakeLists.txt
new file mode 100644
index 0000000..6eaa92f
--- /dev/null
+++ b/kuickshow/misc/CMakeLists.txt
@@ -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 )
diff --git a/kuickshow/pics/CMakeLists.txt b/kuickshow/pics/CMakeLists.txt
new file mode 100644
index 0000000..7083c66
--- /dev/null
+++ b/kuickshow/pics/CMakeLists.txt
@@ -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 )
diff --git a/kuickshow/src/CMakeLists.txt b/kuickshow/src/CMakeLists.txt
new file mode 100644
index 0000000..c0b714f
--- /dev/null
+++ b/kuickshow/src/CMakeLists.txt
@@ -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}
+)