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

set(sigbattle_HEADERS
    ActionQueue.h
    Arena.h
    ATBArena.h
    ATBTimer.h
    Bot.h
    Containment.h
    GhostBot.h
    Ghost.h
    Player.h
    Team.h
    TeamMember.h
    TurnArena.h
)
set(sigbattle_SRCS
    Arena.cpp
    ATBArena.cpp
    ATBTimer.cpp
    Containment.cpp
    Ghost.cpp
    Player.cpp
    Team.cpp
    TeamMember.cpp
    TurnArena.cpp
)

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

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

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