summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: b58b6df51bca2eab3dad0d02cb9fd9688e5170da (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
97
98
#################################################
#
#  (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( profiles )
add_subdirectory( profileengine )
add_subdirectory( newui )
add_subdirectory( tdeconf_update )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/lib/interfaces
  ${CMAKE_SOURCE_DIR}/lib/interfaces/extensions
  ${CMAKE_SOURCE_DIR}/lib/interfaces/external
  ${CMAKE_SOURCE_DIR}/lib/widgets
  ${CMAKE_SOURCE_DIR}/lib/util
  ${CMAKE_SOURCE_DIR}/src/profileengine/lib
  ${CMAKE_SOURCE_DIR}/src/newui
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### headers ###################################

install( FILES
    api.h core.h documentationpart.h editorproxy.h
    generalinfowidget.h languageselectwidget.h
    mainwindowshare.h partcontroller.h plugincontroller.h
    projectmanager.h projectsession.h shellextension.h
    splashscreen.h statusbar.h toplevel.h
    ${CMAKE_CURRENT_BINARY_DIR}/generalinfowidgetbase.h
    ${CMAKE_CURRENT_BINARY_DIR}/mimewarningdialog.h
    ${CMAKE_CURRENT_BINARY_DIR}/settingswidget.h
    simplemainwindow.h multibuffer.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/shell )


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

install( FILES tdevelopui.rc eventsrc DESTINATION ${DATA_INSTALL_DIR}/tdevelop )
install( FILES tdeveloprc tdevassistantrc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES tdevassistantui.rc DESTINATION ${DATA_INSTALL_DIR}/tdevassistant )
install( FILES projectprofiles DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles )


##### tdevelop (executable) #####################

tde_add_executable( tdevelop
  SOURCES
    main.cpp tdevideextension.cpp settingswidget.ui
  LINK tdevshell-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### tdevassistant (executable) ################

tde_add_executable( tdevassistant
  SOURCES
    main_assistant.cpp tdevassistantextension.cpp
  LINK tdevshell-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### tdevshell (shared) ########################

tde_add_library( tdevshell SHARED AUTOMOC
  SOURCES
    api.cpp core.cpp documentationpart.cpp editorproxy.cpp
    generalinfowidget.cpp generalinfowidgetbase.ui
    languageselectwidget.cpp mainwindowshare.cpp
    mimewarningdialog.ui multibuffer.cpp partcontroller.cpp
    plugincontroller.cpp pluginselectdialog.cpp
    pluginselectdialog.h pluginselectdialogbase.ui
    projectmanager.cpp projectsession.cpp shellextension.cpp
    simplemainwindow.cpp splashscreen.cpp statusbar.cpp
    toplevel.cpp
  VERSION 0.0.0
  LINK
    tdevutil-static d-shared kinterfacedesigner-shared
    profileengine-shared tdevelop-shared tdevwidgets-shared
  DESTINATION ${LIB_INSTALL_DIR}
)