summaryrefslogtreecommitdiffstats
path: root/kolourpaint/CMakeLists.txt
blob: ee5f064ca9437fc8c436f08e5a62378102462c6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
    tdeprint-shared
  DESTINATION ${BIN_INSTALL_DIR}
)