author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Sat, 13 Dec 2008 15:42:02 +0100 | |
changeset 24 | f68808ae40b9 |
parent 23 | 1cd79bb84e9c |
child 25 | a0fad312ea30 |
permissions | -rw-r--r-- |
0 | 1 |
PROJECT(mc_bot) |
2 |
||
5
7c7fc8906920
FreeBSD Stream Handling added and debian control files improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
4
diff
changeset
|
3 |
cmake_minimum_required(VERSION 2.4) |
7c7fc8906920
FreeBSD Stream Handling added and debian control files improved
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
4
diff
changeset
|
4 |
|
0 | 5 |
# Project Settings |
6 |
SET(CMAKE_VERBOSE_MAKEFILE Off) |
|
7 |
SET(CMAKE_BUILD_TYPE Release) |
|
8 |
SET(CMAKE_C_FLAGS_RELEASE "-g -ggdb") |
|
9 |
||
10 |
# C-Definitions |
|
11 |
ADD_DEFINITIONS(-Wall -O2 -ansi -pedantic) |
|
12 |
ADD_DEFINITIONS(-D_XOPEN_SOURCE=500) |
|
23
1cd79bb84e9c
ChangeLog for mcbot-0.96
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
15
diff
changeset
|
13 |
ADD_DEFINITIONS(-DBOT_VERSION=0.96) |
0 | 14 |
|
15 |
# Includes |
|
16 |
INCLUDE_DIRECTORIES(../include) |
|
17 |
||
18 |
# Target Definitions |
|
13
d3554afaa768
mcbot-0.94-5 Changelog
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
5
diff
changeset
|
19 |
ADD_EXECUTABLE(mcbot compat.c config.c database.c irc.c main.c parse.c) |
0 | 20 |
ADD_EXECUTABLE(dbtool database.c dbtool.c) |
21 |
||
22 |
# Install Rules |
|
23 |
INSTALL(TARGETS mcbot RUNTIME DESTINATION sbin) |
|
24 |
INSTALL(TARGETS dbtool RUNTIME DESTINATION bin) |
|
25 |
INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/nobody/data/locale) |
|
26 |
INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ |
|
27 |
RENAME mcbot) |
|
28 |
||
24
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
29 |
FIND_PROGRAM(MSGFMT_PROG msgfmt) |
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
30 |
IF (MSGFMT_PROG) |
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
31 |
EXEC_PROGRAM(${MSGFMT_PROG} ../locale ARGS -o de/LC_MESSAGES/mcbot.mo de/mcbot.po) |
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
32 |
ELSE(MSGFMT_PROG) |
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
33 |
MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext") |
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
34 |
ENDIF (MSGFMT_PROG) |
0 | 35 |
|
36 |
# Search required libraries |
|
37 |
FIND_LIBRARY(GDBM_LIB NAMES gdbm |
|
38 |
PATHS /usr/lib/ /usr/local/lib) |
|
39 |
IF (GDBM_LIB) |
|
40 |
TARGET_LINK_LIBRARIES(mcbot ${GDBM_LIB}) |
|
41 |
TARGET_LINK_LIBRARIES(dbtool ${GDBM_LIB}) |
|
42 |
ELSE(GDBM_LIB) |
|
24
f68808ae40b9
Better checks for msgfmt and libgdbm-dev added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
23
diff
changeset
|
43 |
MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL libgdbm-dev") |
0 | 44 |
ENDIF (GDBM_LIB) |