From 6e0e1a2a268b0c2cf4274ea0d9fcf0415f3c1d3d Mon Sep 17 00:00:00 2001 From: samelian Date: Tue, 10 May 2011 19:25:30 +0000 Subject: [PATCH] [kdegraphics/kolourpaint] added cmake support git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1231305 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- CMakeLists.txt | 2 + kolourpaint/CMakeLists.txt | 65 ++++++++++++++++++++++++++ kolourpaint/cursors/CMakeLists.txt | 23 +++++++++ kolourpaint/pics/CMakeLists.txt | 15 ++++++ kolourpaint/pics/custom/CMakeLists.txt | 18 +++++++ kolourpaint/pixmapfx/CMakeLists.txt | 30 ++++++++++++ kolourpaint/tools/CMakeLists.txt | 38 +++++++++++++++ kolourpaint/views/CMakeLists.txt | 28 +++++++++++ kolourpaint/widgets/CMakeLists.txt | 33 +++++++++++++ 9 files changed, 252 insertions(+) create mode 100644 kolourpaint/CMakeLists.txt create mode 100644 kolourpaint/cursors/CMakeLists.txt create mode 100644 kolourpaint/pics/CMakeLists.txt create mode 100644 kolourpaint/pics/custom/CMakeLists.txt create mode 100644 kolourpaint/pixmapfx/CMakeLists.txt create mode 100644 kolourpaint/tools/CMakeLists.txt create mode 100644 kolourpaint/views/CMakeLists.txt create mode 100644 kolourpaint/widgets/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b37a8dd..1f33296f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ option( BUILD_KGAMMA "Build kgamma" ${BUILD_ALL} ) option( BUILD_KGHOSTVIEW "Build kghostview" ${BUILD_ALL} ) option( BUILD_KICONEDIT "Build kiconedit" ${BUILD_ALL} ) option( BUILD_KMRML "Build kmrml" ${BUILD_ALL} ) +option( BUILD_KOLOURPAINT "Build kolourpaint" ) option( BUILD_KVIEW "Build kview" ${BUILD_ALL} ) option( BUILD_KRULER "Build kruler" ${BUILD_ALL} ) option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} ) @@ -104,6 +105,7 @@ tde_conditional_add_subdirectory( BUILD_KGAMMA kgamma ) tde_conditional_add_subdirectory( BUILD_KGHOSTVIEW kghostview ) tde_conditional_add_subdirectory( BUILD_KICONEDIT kiconedit ) tde_conditional_add_subdirectory( BUILD_KMRML kmrml ) +tde_conditional_add_subdirectory( BUILD_KOLOURPAINT kolourpaint ) tde_conditional_add_subdirectory( BUILD_KVIEW kview ) tde_conditional_add_subdirectory( BUILD_KRULER kruler ) tde_conditional_add_subdirectory( BUILD_KPDF kpdf ) diff --git a/kolourpaint/CMakeLists.txt b/kolourpaint/CMakeLists.txt new file mode 100644 index 00000000..3f6e2daa --- /dev/null +++ b/kolourpaint/CMakeLists.txt @@ -0,0 +1,65 @@ +################################################# +# +# (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( cursors ) +add_subdirectory( pics ) +add_subdirectory( pixmapfx ) +add_subdirectory( tools ) +add_subdirectory( views ) +add_subdirectory( widgets ) + + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/pixmapfx + ${CMAKE_CURRENT_SOURCE_DIR}/tools + ${CMAKE_CURRENT_SOURCE_DIR}/views + ${CMAKE_CURRENT_SOURCE_DIR}/widgets + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kolourpaint.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kolourpaintui.rc DESTINATION ${DATA_INSTALL_DIR}/kolourpaint ) + + +##### kolourpaint (executable) ################## + +tde_file_to_cpp( COPYING kolourpaintlicense.h kpLicenseText ) +tde_file_to_cpp( VERSION kolourpaintversion.h kpVersionText ) + +tde_add_executable( kolourpaint AUTOMOC + SOURCES + kolourpaint.cpp kpdocument.cpp kpdocumentmetainfo.cpp + kpdocumentsaveoptions.cpp kpdocumentsaveoptionswidget.cpp + kpview.cpp kpcolor.cpp kpcommandhistory.cpp kpmainwindow.cpp + kpmainwindow_edit.cpp kpmainwindow_help.cpp + kpmainwindow_image.cpp kpmainwindow_tools.cpp + kpmainwindow_file.cpp kpmainwindow_settings.cpp + kpmainwindow_statusbar.cpp kpmainwindow_text.cpp + kpmainwindow_view.cpp kpselection.cpp kpselectiondrag.cpp + kpselectiontransparency.cpp kpsinglekeytriggersaction.cpp + kptemppixmap.cpp kptextstyle.cpp kpthumbnail.cpp kptool.cpp + kpviewmanager.cpp kpviewscrollablecontainer.cpp kpwidgetmapper.cpp + LINK + kolourpainttools-static kolourpaintpixmapfx-static kolourpaintcursors-static + kolourpaintviews-static kolourpaintwidgets-static + kdeprint-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kolourpaint/cursors/CMakeLists.txt b/kolourpaint/cursors/CMakeLists.txt new file mode 100644 index 00000000..ecd59d95 --- /dev/null +++ b/kolourpaint/cursors/CMakeLists.txt @@ -0,0 +1,23 @@ +################################################# +# +# (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_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### kolourpaintcursors (static) ############### + +tde_add_library( kolourpaintcursors STATIC_PIC + SOURCES kpcursorlightcross.cpp kpcursorprovider.cpp +) diff --git a/kolourpaint/pics/CMakeLists.txt b/kolourpaint/pics/CMakeLists.txt new file mode 100644 index 00000000..aa00ba62 --- /dev/null +++ b/kolourpaint/pics/CMakeLists.txt @@ -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( custom ) + +tde_install_icons( kolourpaint ) +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kolourpaint/icons ) diff --git a/kolourpaint/pics/custom/CMakeLists.txt b/kolourpaint/pics/custom/CMakeLists.txt new file mode 100644 index 00000000..63fb7d87 --- /dev/null +++ b/kolourpaint/pics/custom/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (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 + tool_spraycan_9x9.png tool_spraycan_17x17.png tool_spraycan_29x29.png + color_transparent_26x26.png colorbutton_swap_16x16.png + option_opaque.png option_transparent.png resize.png scale.png + smooth_scale.png image_skew_horizontal.png image_skew_vertical.png + image_rotate_anticlockwise.png image_rotate_clockwise.png + DESTINATION ${DATA_INSTALL_DIR}/kolourpaint/pics ) diff --git a/kolourpaint/pixmapfx/CMakeLists.txt b/kolourpaint/pixmapfx/CMakeLists.txt new file mode 100644 index 00000000..125a068f --- /dev/null +++ b/kolourpaint/pixmapfx/CMakeLists.txt @@ -0,0 +1,30 @@ +################################################# +# +# (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_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/../tools + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### kolourpaintpixmapfx (static) ############## + +tde_add_library( kolourpaintpixmapfx STATIC_PIC AUTOMOC + SOURCES + kpcoloreffect.cpp kpeffectbalance.cpp kpeffectblursharpen.cpp + kpeffectemboss.cpp kpeffectflatten.cpp kpeffectinvert.cpp + kpeffectreducecolors.cpp kpeffectsdialog.cpp kpfloodfill.cpp + kppixmapfx.cpp +) diff --git a/kolourpaint/tools/CMakeLists.txt b/kolourpaint/tools/CMakeLists.txt new file mode 100644 index 00000000..679fed5d --- /dev/null +++ b/kolourpaint/tools/CMakeLists.txt @@ -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_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/../pixmapfx + ${CMAKE_CURRENT_SOURCE_DIR}/../widgets + ${CMAKE_CURRENT_SOURCE_DIR}/../cursors + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### kolourpainttools (static) ################# + +tde_add_library( kolourpainttools STATIC_PIC AUTOMOC + SOURCES + kptoolaction.cpp kptoolairspray.cpp kptoolautocrop.cpp + kptoolbrush.cpp kptoolclear.cpp kptoolcolorpicker.cpp + kptoolcolorwasher.cpp kptoolconverttograyscale.cpp kptoolcrop.cpp + kptoolcurve.cpp kptoolellipse.cpp kptoolellipticalselection.cpp + kptooleraser.cpp kptoolflip.cpp kptoolfloodfill.cpp + kptoolfreeformselection.cpp kptoolline.cpp kptoolpen.cpp + kptoolpolygon.cpp kptoolpolyline.cpp kptoolpreviewdialog.cpp + kptoolrectangle.cpp kptoolrectselection.cpp kptoolresizescale.cpp + kptoolrotate.cpp kptoolroundedrectangle.cpp kptoolselection.cpp + kptoolskew.cpp kptooltext.cpp +) diff --git a/kolourpaint/views/CMakeLists.txt b/kolourpaint/views/CMakeLists.txt new file mode 100644 index 00000000..ae84e6de --- /dev/null +++ b/kolourpaint/views/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (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_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/../pixmapfx + ${CMAKE_CURRENT_SOURCE_DIR}/../views + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### kolourpaintviews (static) ################# + +tde_add_library( kolourpaintviews STATIC_PIC AUTOMOC + SOURCES + kpthumbnailview.cpp kpunzoomedthumbnailview.cpp + kpzoomedthumbnailview.cpp kpzoomedview.cpp +) diff --git a/kolourpaint/widgets/CMakeLists.txt b/kolourpaint/widgets/CMakeLists.txt new file mode 100644 index 00000000..afd8f46e --- /dev/null +++ b/kolourpaint/widgets/CMakeLists.txt @@ -0,0 +1,33 @@ +################################################# +# +# (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_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/../pixmapfx + ${CMAKE_CURRENT_SOURCE_DIR}/../tools + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### kolourpaintwidgets (static) ############### + +tde_add_library( kolourpaintwidgets STATIC_PIC AUTOMOC + SOURCES + kpcolorsimilaritycube.cpp kpcolorsimilaritydialog.cpp + kpcolortoolbar.cpp kpresizesignallinglabel.cpp + kpsqueezedtextlabel.cpp kptooltoolbar.cpp kptoolwidgetbase.cpp + kptoolwidgetbrush.cpp kptoolwidgeterasersize.cpp + kptoolwidgetfillstyle.cpp kptoolwidgetlinewidth.cpp + kptoolwidgetopaqueortransparent.cpp kptoolwidgetspraycansize.cpp +)