summaryrefslogtreecommitdiffstats
path: root/quanta/src/CMakeLists.txt
blob: 4ca5e5523e923f900e7baad8f7739c8047b138bd (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#################################################
#
#  (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_BINARY_DIR}
  ${CMAKE_BINARY_DIR}/quanta/dialogs
  ${CMAKE_BINARY_DIR}/quanta/dialogs/settings
  ${CMAKE_BINARY_DIR}/quanta/dialogs/tagdialogs
  ${CMAKE_BINARY_DIR}/quanta/parts/kafka
  ${CMAKE_BINARY_DIR}/quanta/components/tableeditor
  ${CMAKE_BINARY_DIR}/quanta/components/csseditor
  ${CMAKE_BINARY_DIR}/quanta/components/framewizard
  ${CMAKE_BINARY_DIR}/quanta/components/cvsservice
  ${CMAKE_SOURCE_DIR}/lib
  ${CMAKE_SOURCE_DIR}/quanta/src
  ${CMAKE_SOURCE_DIR}/quanta/project
  ${CMAKE_SOURCE_DIR}/quanta/parsers
  ${CMAKE_SOURCE_DIR}/quanta/parsers/dtd
  ${CMAKE_SOURCE_DIR}/quanta/utility
  ${CMAKE_SOURCE_DIR}/quanta/parts/kafka
  ${CMAKE_SOURCE_DIR}/quanta/parts/preview
  ${CMAKE_SOURCE_DIR}/quanta/components/debugger
  ${CMAKE_SOURCE_DIR}/quanta/components/tableeditor
  ${CMAKE_SOURCE_DIR}/quanta/components/csseditor
  ${CMAKE_SOURCE_DIR}/quanta/components/framewizard
  ${CMAKE_SOURCE_DIR}/quanta/components/cvsservice
  ${CMAKE_SOURCE_DIR}/quanta/messages
  ${CMAKE_SOURCE_DIR}/quanta/treeviews
  ${CMAKE_SOURCE_DIR}/quanta/plugins
  ${CMAKE_SOURCE_DIR}/quanta/dialogs
  ${CMAKE_SOURCE_DIR}/quanta/dialogs/settings
  ${CMAKE_SOURCE_DIR}/quanta/dialogs/tagdialogs
)

include_directories( SYSTEM
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### other data ################################

tde_create_translated_desktop(
    SOURCE quanta.desktop
    DESTINATION ${XDG_APPS_INSTALL_DIR}
    PO_DIR quanta-desktops
)
tde_create_translated_desktop(
    SOURCE x-webprj.desktop
    DESTINATION ${MIME_INSTALL_DIR}/application
    PO_DIR quanta-desktops
)


##### quanta (executable) #######################

set_property( SOURCE kqapp.cpp APPEND PROPERTY COMPILE_DEFINITIONS PREFIX="${CMAKE_INSTALL_PREFIX}" )

tde_add_executable( quanta AUTOMOC

  SOURCES
    quanta_init.cpp quantaview.cpp quantadoc.cpp
    main.cpp document.cpp kqapp.cpp quanta.cpp
    dcopwindowmanagerif.skel dcopsettingsif.skel
    dcopquantaif.skel dcopsettings.cpp dtds.cpp
    dcopquanta.cpp viewmanager.cpp
  LINK
     tdecore-shared tdeui-shared tdeio-shared
     katepartinterfaces-shared tdenewstuff-shared
     tdeabc-shared tdetexteditor-shared
     tdemdi-shared tdehtml-shared tdespell-shared
     kafkalibrary-static project-static
     plugins-static parser-static
     dtdparser-static treeviews-static
     dialogs-static debuggermanager-static
     tagdialogs-static settingsdialogs-static
     messages-static framewizard-static
     csseditor-static tableeditor-static
     preview-static utility-static quantamodule-static
     ${LIBXML_LIBRARIES} ${LIBXSLT_LIBRARIES} ${CVSSERVICE_LIBRARIES}

  DESTINATION ${BIN_INSTALL_DIR}
)