summaryrefslogtreecommitdiffstats
path: root/sigworld/CMakeLists.txt
blob: c128d9e12161fa42ce7a122fb50c3f476fa677fd (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
project(sigworld)

set(sigworld_HEADERS
    Global.h
    MapScene.h
    TileGraphicsItem.h
    TrainerGraphicsItem.h
    WarpGraphicsItem.h
)
set(sigworld_SRCS
    MapScene.cpp
    TileGraphicsItem.cpp
    TrainerGraphicsItem.cpp
    WarpGraphicsItem.cpp
)

kde4_add_library(sigworld
    SHARED
    ${sigworld_SRCS}
)
set_target_properties(sigworld
    PROPERTIES
        VERSION ${SIGEN_VERSION}
        SOVERSION ${SIGEN_SOVERSION}
)
target_link_libraries(sigworld
    ${QT_QTCORE_LIBRARY}
    ${QT_QTGUI_LIBRARY}
    ${KDE4_KROSSCORE_LIBRARY}
    sigcore
    sigscript
)
target_link_libraries(sigworld LINK_INTERFACE_LIBRARIES
    ${QT_QTCORE_LIBRARY}
    ${QT_QTGUI_LIBRARY}
    sigcore
    sigscript
)

install(
    TARGETS
        sigworld
    EXPORT
        sigen_EXPORTS
    DESTINATION
        ${LIB_INSTALL_DIR}
    COMPONENT
        runtime
)

install(
    FILES
        ${sigworld_HEADERS}
    DESTINATION
        ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME}/${PROJECT_NAME}
    COMPONENT
        development
)