Kaynağa Gözat

[kdegraphics/kolourpaint] added cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1231305 283d02a7-25f6-0310-bc7c-ecb5cbfe19
tags/v3.5.13
samelian 8 yıl önce
ebeveyn
işleme
6e0e1a2a26

+ 2
- 0
CMakeLists.txt Dosyayı Görüntüle

@@ -64,6 +64,7 @@ option( BUILD_KGAMMA "Build kgamma" ${BUILD_ALL} )
64 64
 option( BUILD_KGHOSTVIEW "Build kghostview" ${BUILD_ALL} )
65 65
 option( BUILD_KICONEDIT "Build kiconedit" ${BUILD_ALL} )
66 66
 option( BUILD_KMRML "Build kmrml" ${BUILD_ALL} )
67
+option( BUILD_KOLOURPAINT "Build kolourpaint" )
67 68
 option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
68 69
 option( BUILD_KRULER "Build kruler" ${BUILD_ALL} )
69 70
 option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} )
@@ -104,6 +105,7 @@ tde_conditional_add_subdirectory( BUILD_KGAMMA kgamma )
104 105
 tde_conditional_add_subdirectory( BUILD_KGHOSTVIEW kghostview )
105 106
 tde_conditional_add_subdirectory( BUILD_KICONEDIT kiconedit )
106 107
 tde_conditional_add_subdirectory( BUILD_KMRML kmrml )
108
+tde_conditional_add_subdirectory( BUILD_KOLOURPAINT kolourpaint )
107 109
 tde_conditional_add_subdirectory( BUILD_KVIEW kview )
108 110
 tde_conditional_add_subdirectory( BUILD_KRULER kruler )
109 111
 tde_conditional_add_subdirectory( BUILD_KPDF kpdf )

+ 65
- 0
kolourpaint/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,65 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+add_subdirectory( cursors )
13
+add_subdirectory( pics )
14
+add_subdirectory( pixmapfx )
15
+add_subdirectory( tools )
16
+add_subdirectory( views )
17
+add_subdirectory( widgets )
18
+
19
+
20
+include_directories(
21
+  ${CMAKE_CURRENT_BINARY_DIR}
22
+  ${CMAKE_CURRENT_SOURCE_DIR}
23
+  ${CMAKE_CURRENT_SOURCE_DIR}/pixmapfx
24
+  ${CMAKE_CURRENT_SOURCE_DIR}/tools
25
+  ${CMAKE_CURRENT_SOURCE_DIR}/views
26
+  ${CMAKE_CURRENT_SOURCE_DIR}/widgets
27
+  ${TDE_INCLUDE_DIR}
28
+  ${TQT_INCLUDE_DIRS}
29
+)
30
+
31
+link_directories(
32
+  ${TQT_LIBRARY_DIRS}
33
+)
34
+
35
+
36
+##### other data ################################
37
+
38
+install( FILES kolourpaint.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
39
+install( FILES kolourpaintui.rc DESTINATION ${DATA_INSTALL_DIR}/kolourpaint )
40
+
41
+
42
+##### kolourpaint (executable) ##################
43
+
44
+tde_file_to_cpp( COPYING kolourpaintlicense.h kpLicenseText )
45
+tde_file_to_cpp( VERSION kolourpaintversion.h kpVersionText )
46
+
47
+tde_add_executable( kolourpaint AUTOMOC
48
+  SOURCES
49
+    kolourpaint.cpp kpdocument.cpp kpdocumentmetainfo.cpp
50
+    kpdocumentsaveoptions.cpp kpdocumentsaveoptionswidget.cpp
51
+    kpview.cpp kpcolor.cpp kpcommandhistory.cpp kpmainwindow.cpp
52
+    kpmainwindow_edit.cpp kpmainwindow_help.cpp
53
+    kpmainwindow_image.cpp kpmainwindow_tools.cpp
54
+    kpmainwindow_file.cpp kpmainwindow_settings.cpp
55
+    kpmainwindow_statusbar.cpp kpmainwindow_text.cpp
56
+    kpmainwindow_view.cpp kpselection.cpp kpselectiondrag.cpp
57
+    kpselectiontransparency.cpp kpsinglekeytriggersaction.cpp
58
+    kptemppixmap.cpp kptextstyle.cpp kpthumbnail.cpp kptool.cpp
59
+    kpviewmanager.cpp kpviewscrollablecontainer.cpp kpwidgetmapper.cpp
60
+  LINK
61
+    kolourpainttools-static kolourpaintpixmapfx-static kolourpaintcursors-static
62
+    kolourpaintviews-static kolourpaintwidgets-static
63
+    kdeprint-shared
64
+  DESTINATION ${BIN_INSTALL_DIR}
65
+)

+ 23
- 0
kolourpaint/cursors/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,23 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_CURRENT_SOURCE_DIR}
14
+  ${TDE_INCLUDE_DIR}
15
+  ${TQT_INCLUDE_DIRS}
16
+)
17
+
18
+
19
+##### kolourpaintcursors (static) ###############
20
+
21
+tde_add_library( kolourpaintcursors STATIC_PIC
22
+  SOURCES kpcursorlightcross.cpp kpcursorprovider.cpp
23
+)

+ 15
- 0
kolourpaint/pics/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,15 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+add_subdirectory( custom )
13
+
14
+tde_install_icons( kolourpaint )
15
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kolourpaint/icons )

+ 18
- 0
kolourpaint/pics/custom/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+install( FILES
13
+    tool_spraycan_9x9.png tool_spraycan_17x17.png tool_spraycan_29x29.png
14
+    color_transparent_26x26.png colorbutton_swap_16x16.png
15
+    option_opaque.png option_transparent.png resize.png scale.png
16
+    smooth_scale.png image_skew_horizontal.png image_skew_vertical.png
17
+    image_rotate_anticlockwise.png image_rotate_clockwise.png
18
+  DESTINATION ${DATA_INSTALL_DIR}/kolourpaint/pics )

+ 30
- 0
kolourpaint/pixmapfx/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,30 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_CURRENT_BINARY_DIR}
14
+  ${CMAKE_CURRENT_SOURCE_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}/..
16
+  ${CMAKE_CURRENT_SOURCE_DIR}/../tools
17
+  ${TDE_INCLUDE_DIR}
18
+  ${TQT_INCLUDE_DIRS}
19
+)
20
+
21
+
22
+##### kolourpaintpixmapfx (static) ##############
23
+
24
+tde_add_library( kolourpaintpixmapfx STATIC_PIC AUTOMOC
25
+  SOURCES
26
+    kpcoloreffect.cpp kpeffectbalance.cpp kpeffectblursharpen.cpp
27
+    kpeffectemboss.cpp kpeffectflatten.cpp kpeffectinvert.cpp
28
+    kpeffectreducecolors.cpp kpeffectsdialog.cpp kpfloodfill.cpp
29
+    kppixmapfx.cpp
30
+)

+ 38
- 0
kolourpaint/tools/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,38 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_CURRENT_BINARY_DIR}
14
+  ${CMAKE_CURRENT_SOURCE_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}/..
16
+  ${CMAKE_CURRENT_SOURCE_DIR}/../pixmapfx
17
+  ${CMAKE_CURRENT_SOURCE_DIR}/../widgets
18
+  ${CMAKE_CURRENT_SOURCE_DIR}/../cursors
19
+  ${TDE_INCLUDE_DIR}
20
+  ${TQT_INCLUDE_DIRS}
21
+)
22
+
23
+
24
+##### kolourpainttools (static) #################
25
+
26
+tde_add_library( kolourpainttools STATIC_PIC AUTOMOC
27
+  SOURCES
28
+    kptoolaction.cpp kptoolairspray.cpp kptoolautocrop.cpp
29
+    kptoolbrush.cpp kptoolclear.cpp kptoolcolorpicker.cpp
30
+    kptoolcolorwasher.cpp kptoolconverttograyscale.cpp kptoolcrop.cpp
31
+    kptoolcurve.cpp kptoolellipse.cpp kptoolellipticalselection.cpp
32
+    kptooleraser.cpp kptoolflip.cpp kptoolfloodfill.cpp
33
+    kptoolfreeformselection.cpp kptoolline.cpp kptoolpen.cpp
34
+    kptoolpolygon.cpp kptoolpolyline.cpp kptoolpreviewdialog.cpp
35
+    kptoolrectangle.cpp kptoolrectselection.cpp kptoolresizescale.cpp
36
+    kptoolrotate.cpp kptoolroundedrectangle.cpp kptoolselection.cpp
37
+    kptoolskew.cpp kptooltext.cpp
38
+)

+ 28
- 0
kolourpaint/views/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,28 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_CURRENT_BINARY_DIR}
14
+  ${CMAKE_CURRENT_SOURCE_DIR}/..
15
+  ${CMAKE_CURRENT_SOURCE_DIR}/../pixmapfx
16
+  ${CMAKE_CURRENT_SOURCE_DIR}/../views
17
+  ${TDE_INCLUDE_DIR}
18
+  ${TQT_INCLUDE_DIRS}
19
+)
20
+
21
+
22
+##### kolourpaintviews (static) #################
23
+
24
+tde_add_library( kolourpaintviews STATIC_PIC AUTOMOC
25
+  SOURCES
26
+    kpthumbnailview.cpp kpunzoomedthumbnailview.cpp
27
+    kpzoomedthumbnailview.cpp kpzoomedview.cpp
28
+)

+ 33
- 0
kolourpaint/widgets/CMakeLists.txt Dosyayı Görüntüle

@@ -0,0 +1,33 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_CURRENT_BINARY_DIR}
14
+  ${CMAKE_CURRENT_SOURCE_DIR}
15
+  ${CMAKE_CURRENT_SOURCE_DIR}/..
16
+  ${CMAKE_CURRENT_SOURCE_DIR}/../pixmapfx
17
+  ${CMAKE_CURRENT_SOURCE_DIR}/../tools
18
+  ${TDE_INCLUDE_DIR}
19
+  ${TQT_INCLUDE_DIRS}
20
+)
21
+
22
+
23
+##### kolourpaintwidgets (static) ###############
24
+
25
+tde_add_library( kolourpaintwidgets STATIC_PIC AUTOMOC
26
+  SOURCES
27
+    kpcolorsimilaritycube.cpp kpcolorsimilaritydialog.cpp
28
+    kpcolortoolbar.cpp kpresizesignallinglabel.cpp
29
+    kpsqueezedtextlabel.cpp kptooltoolbar.cpp kptoolwidgetbase.cpp
30
+    kptoolwidgetbrush.cpp kptoolwidgeterasersize.cpp
31
+    kptoolwidgetfillstyle.cpp kptoolwidgetlinewidth.cpp
32
+    kptoolwidgetopaqueortransparent.cpp kptoolwidgetspraycansize.cpp
33
+)

Loading…
İptal
Kaydet