[kdegraphics/kview] initial cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1223181 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 6803a8bb7f
commit c3809fce15

@ -0,0 +1,85 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
#################################################
cmake_minimum_required( VERSION 2.6 )
##### general package setup #####################
project( kdegraphics )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckTypeSize )
# include( CheckCSourceRuns )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
include( CheckLibraryExists )
# include( CheckFunctionExists )
# include( CheckStructHasMember )
##### 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_ALSA "Enable ALSA support" ON )
##### user requested modules ####################
option( BUILD_ALL "Build all" OFF )
option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
${TQT_CFLAGS_OTHER}
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### activate dependencies #####################
# if( BUILD_LIBKCAL OR BUILD_LIBKDEPIM OR BUILD_LIBKPIMIDENTITIES OR BUILD_KIOSLAVES OR BUILD_KMAIL )
# add_subdirectory( libemailfunctions )
# endif()
##### kdemultimedia directories ########################
tde_conditional_add_subdirectory( BUILD_KVIEW kview )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,13 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
#################################################
# required stuff
find_package( Qt )
find_package( TQt )
find_package( TDE )

@ -0,0 +1,43 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( kimageviewer )
add_subdirectory( config )
add_subdirectory( kviewcanvas )
add_subdirectory( kviewviewer )
add_subdirectory( modules )
add_subdirectory( photobook )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( kview )
install( FILES kview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kview )
##### kview (kdeinit) ###########################
tde_add_kdeinit_executable( kview AUTOMOC
SOURCES kview.cpp main.cpp
LINK kparts-shared kutils-shared
)

@ -0,0 +1,37 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( plugins )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kviewgeneralconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
install( FILES kview.setdlg DESTINATION ${DATA_INSTALL_DIR}/kview )
##### kcm_kviewgeneralconfig (module) ###########
tde_add_kpart( kcm_kviewgeneralconfig AUTOMOC
SOURCES kviewconfmodules.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,34 @@
#################################################
#
# (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}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kviewpluginsconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
##### kcm_kviewpluginsconfig (module) ###########
tde_add_kpart( kcm_kviewpluginsconfig AUTOMOC
SOURCES kviewpluginsconfig.cpp
LINK kutils-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,37 @@
#################################################
#
# (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}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kimageviewercanvas.desktop kimageviewer.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR} )
##### kimageviewer (shared) #####################
tde_add_library( kimageviewer SHARED AUTOMOC
SOURCES canvas.cpp viewer.cpp
VERSION 0.0.0
LINK kparts-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -0,0 +1,37 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( config )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/kview
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kviewcanvas.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libkviewcanvas (module) ###################
tde_add_kpart( libkviewcanvas AUTOMOC
SOURCES kimageholder.cpp kimagecanvas.cpp
LINK kimageviewer-shared kutils-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (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}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kviewcanvasconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
##### kcm_kviewcanvasconfig (module) ############
tde_add_kpart( kcm_kviewcanvasconfig AUTOMOC
SOURCES generalconfigwidget.ui confmodules.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,40 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( config )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/kview
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kviewviewer.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kviewviewer.rc kviewviewer_ro.rc kviewpopup.rc DESTINATION ${DATA_INSTALL_DIR}/kviewviewer )
##### libkviewviewer (module) ###################
tde_add_kpart( libkviewviewer AUTOMOC
SOURCES
printimagesettings.ui imagesettings.cpp
kviewkonqextension.cpp kviewviewer.cpp
LINK kimageviewer-shared kutils-shared kdeprint-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (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}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kviewviewerpluginsconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
##### kcm_kviewviewerpluginsconfig (module) #####
tde_add_kpart( kcm_kviewviewerpluginsconfig AUTOMOC
SOURCES kviewviewerpluginsconfig.cpp
LINK kutils-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,15 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( scanner )
add_subdirectory( presenter )
add_subdirectory( browser )
add_subdirectory( effects )

@ -0,0 +1,38 @@
#################################################
#
# (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}
${CMAKE_SOURCE_DIR}/kview
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kviewbrowser.desktop kviewbrowser.rc
DESTINATION ${DATA_INSTALL_DIR}/kviewviewer/kpartplugins )
##### kview_browserplugin (module) ##############
tde_add_kpart( kview_browserplugin AUTOMOC
SOURCES
kmyfileitemlist.cpp kviewbrowser.cpp
LINK kparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,37 @@
#################################################
#
# (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}
${CMAKE_SOURCE_DIR}/kview
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kvieweffects.desktop kvieweffects.rc
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins )
##### kview_effectsplugin (module) ##############
tde_add_kpart( kview_effectsplugin AUTOMOC
SOURCES kvieweffects.cpp
LINK kparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -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
#
#################################################
add_subdirectory( config )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kview
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kviewpresenter.desktop kviewpresenter.rc
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins )
##### kview_presenterplugin (module) ############
tde_add_kpart( kview_presenterplugin AUTOMOC
SOURCES
imagelistitem.cpp imagelistdialog.ui kviewpresenter.cpp
LINK kio-shared kparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (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}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kviewpresenterconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
##### kcm_kviewpresenterconfig (module) #########
tde_add_kpart( kcm_kviewpresenterconfig AUTOMOC
SOURCES kviewpresenterconfig.cpp
LINK kutils-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,37 @@
#################################################
#
# (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}
${CMAKE_SOURCE_DIR}/kview
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kviewscanner.desktop kviewscanner.rc
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins )
##### kview_scannerplugin (module) ##############
tde_add_kpart( kview_scannerplugin AUTOMOC
SOURCES kviewscanner.cpp
LINK kparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (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}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( photobook )
install( FILES photobook.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES photobookui.rc DESTINATION ${DATA_INSTALL_DIR}/photobook )
##### libphotobook (module) #####################
tde_add_kpart( libphotobook AUTOMOC
SOURCES photobook.cpp
LINK kparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
Loading…
Cancel
Save