summaryrefslogtreecommitdiffstats
path: root/sigmodr/CMakeLists.txt
blob: 4c74cbd42941aee3de6729fc453a90853275d6ff (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
project(sigmodr)

if (NOT SIGEN_VERSION)
    message(FATAL_ERROR "Sigen version is not defined")
endif (NOT SIGEN_VERSION)

include_directories(
    ${PROJECT_SOURCE_DIR}
    ${PROJECT_BINARY_DIR}
)

set(sigmodrwidgets_FORMS
    sigmodr.ui
)
kde4_add_ui_files(sigmodr_UI_HEADERS ${sigmodr_FORMS})
set(sigmodr_KCFGC_FILES
    SigmodrPreferences.kcfgc
)
kde4_add_kcfg_files(sigmodr_KCFGC_SRCS ${sigmodr_KCFGC_FILES})
set(sigmodr_HEADERS
    EffectItem.h
    MapEditor.h
    MapScene.h
    SigmodrPreferencesWidget.h
    SigmodrUI.h
    TileItem.h
    TrainerItem.h
    WarpItem.h
)
set(sigmodr_SRCS
    EffectItem.cpp
    MapEditor.cpp
    MapScene.cpp
    Sigmodr.cpp
    SigmodrPreferencesWidget.cpp
    SigmodrUI.cpp
    TileItem.cpp
    TrainerItem.cpp
    WarpItem.cpp
)
set(sigmodr_RC_FILES
    sigmodrui.rc
)
set(sigmodr_KCFG_FILES
    sigmodr.kcfg
)
set(sigmodr_MIME_INFO_FILES
    sigmodr.xml
)
set(sigmodr_DESKTOP_FILES
    sigmodr.desktop
)

add_subdirectory(widgets)
add_subdirectory(tree)

kde4_add_executable(sigmodr
    ${sigmodr_SRCS}
    ${sigmodr_UI_HEADERS}
    ${sigmodr_KCFGC_SRCS}
)
set_target_properties(sigmodr
    PROPERTIES
        LINK_INTERFACE_LIBRARIES ""
)
target_link_libraries(sigmodr
    ${QT_QTXML_LIBRARY}
    ${KDE4_KDEUI_LIBRARY}
    ${KDE4_KIO_LIBRARY}
    ${KDE4_KNEWSTUFF2_LIBRARY}
    sigmod
    sigmodrwidgets
    sigmodrtree
)

add_subdirectory(doc)

install(
    TARGETS
        sigmodr
    DESTINATION
        ${CMAKE_INSTALL_PREFIX}/bin
    COMPONENT
        runtime
)

install(
    FILES
        ${sigmodr_RC_FILES}
    DESTINATION
        ${KDE4_DATA_DIR}/sigmodr
    COMPONENT
        runtime
)

install(
    FILES
        ${sigmodr_KCFG_FILES}
    DESTINATION
        ${KCFG_INSTALL_DIR}
    COMPONENT
        runtime
)

install(
    FILES
        ${sigmodr_HEADERS}
        ${sigmodr_FORMS}
    DESTINATION
        ${CMAKE_INSTALL_PREFIX}/include/${CMAKE_PROJECT_NAME}/${PROJECT_NAME}
    COMPONENT
        development
)

install(
    FILES
        ${sigmodr_MIME_INFO_FILES}
    DESTINATION
        ${CMAKE_INSTALL_PREFIX}/share/mime/packages
    COMPONENT
        metadata
)

install(
    FILES
        ${sigmodr_DESKTOP_FILES}
    DESTINATION
        ${CMAKE_INSTALL_PREFIX}/share/applications
    COMPONENT
        metadata
)