summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 4efd9e2c94ec1477f4404f1cbcb9e7ea21d58c96 (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
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

PROJECT(sigen)

SET(BUILT_FROM_ROOT
    TRUE
)

ADD_DEFINITIONS(-O0)

IF(MINGW_CROSS)
    SET(CMAKE_TOOLCHAIN_FILE
        cross-mingw32.cmake
    )
ENDIF(MINGW_CROSS)

INCLUDE(latex.cmake)

FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})

FIND_PACKAGE(KDE4 REQUIRED)
FIND_PACKAGE(Phonon REQUIRED)

SET(SIGEN_VERSION_MAJOR
    0
)
SET(SIGEN_VERSION_MINOR
    0
)
SET(SIGEN_VERSION_RELEASE
    2
)
SET(SIGEN_VERSION
    "${SIGEN_VERSION_MAJOR}.${SIGEN_VERSION_MINOR}.${SIGEN_VERSION_RELEASE}"
)
SET(SIGEN_SOVERSION
    "0"
)

SET(BUILD_SHARED_LIBS
    ON
)
SET(EXECUTABLE_OUTPUT_PATH
    ${PROJECT_BINARY_DIR}/bin
)
SET(LIBRARY_OUTPUT_PATH
    ${PROJECT_BINARY_DIR}/lib
)
SET(DOCUMENTATION_OUTPUT_PATH
    ${PROJECT_BINARY_DIR}/doc
)

INCLUDE_DIRECTORIES(
    ${QT_INCLUDE_DIR}
    ${KDE4_INCLUDE_DIR}
    ${KDE4_INCLUDE_DIR}/KDE
    ${PHONON_INCLUDES}
)
LINK_DIRECTORIES(
    ${LIBRARY_OUTPUT_PATH}
)

ADD_SUBDIRECTORY(sigmod)
ADD_SUBDIRECTORY(sigscript)
ADD_SUBDIRECTORY(sigbattle)
ADD_SUBDIRECTORY(sigmodr)

ADD_DEPENDENCIES(sigscript
    sigmod
)
ADD_DEPENDENCIES(sigbattle
    sigscript
)
ADD_DEPENDENCIES(sigmodr
    sigmod
)

INSTALL(
    FILES DISCLAIMER LICENSE
    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/${CMAKE_PROJECT_NAME}-${SIGEN_VERSION}
    COMPONENT documentation
)

INSTALL(
    FILES sigmod.knsrc
    DESTINATION ${KDE4_CONFIG_INSTALL_DIR}
)