summaryrefslogtreecommitdiffstats
path: root/sigencore/plugins/CMakeLists.txt
blob: 0ab6e649433e943a3ffd0ef6a52cde2c9f86d0bb (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
project(plugins)

set(sigencoreplugins_HEADERS
    ArenaPlugin.h
    CanvasPlugin.h
    ClientPlugin.h
    PluginBase.h
    Global.h
)
set(sigencoreplugins_SRCS
    ArenaPlugin.cpp
    CanvasPlugin.cpp
    ClientPlugin.cpp
    PluginBase.cpp
)
set(sigencoreplugins_SERVICETYPES
    sigen_arena.desktop
    sigen_canvas.desktop
    sigen_client.desktop
)

kde4_add_library(sigencoreplugins
    SHARED
    ${sigencoreplugins_SRCS}
)
set_target_properties(sigencoreplugins
    PROPERTIES
        VERSION ${SIGEN_VERSION}
        SOVERSION ${SIGEN_SOVERSION}
)
target_link_libraries(sigencoreplugins
    sigencore
)
target_link_libraries(sigencoreplugins LINK_INTERFACE_LIBRARIES
    sigencore
)

add_subdirectory(arenas)
add_subdirectory(canvases)

install(
    TARGETS
        sigencoreplugins
    EXPORT
        sigen_EXPORTS
    DESTINATION
        ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
    COMPONENT
        runtime
)

install(
    FILES
        ${sigencoreplugins_HEADERS}
    DESTINATION
        ${CMAKE_INSTALL_PREFIX}/include/sigen/sigencore/plugins
    COMPONENT
        development
)

install(
    FILES
        ${sigencoreplugins_SERVICETYPES}
    DESTINATION
        ${SERVICETYPES_INSTALL_DIR}
    COMPONENT
        runtime
)