diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | kolourpaint/CMakeLists.txt | 65 | ||||
-rw-r--r-- | kolourpaint/cursors/CMakeLists.txt | 23 | ||||
-rw-r--r-- | kolourpaint/pics/CMakeLists.txt | 15 | ||||
-rw-r--r-- | kolourpaint/pics/custom/CMakeLists.txt | 18 | ||||
-rw-r--r-- | kolourpaint/pixmapfx/CMakeLists.txt | 30 | ||||
-rw-r--r-- | kolourpaint/tools/CMakeLists.txt | 38 | ||||
-rw-r--r-- | kolourpaint/views/CMakeLists.txt | 28 | ||||
-rw-r--r-- | kolourpaint/widgets/CMakeLists.txt | 33 |
9 files changed, 252 insertions, 0 deletions
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 +) |