equal
deleted
inserted
replaced
24 INSTALL(TARGETS dbtool RUNTIME DESTINATION bin) |
24 INSTALL(TARGETS dbtool RUNTIME DESTINATION bin) |
25 INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/nobody/data/locale) |
25 INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/nobody/data/locale) |
26 INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ |
26 INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ |
27 RENAME mcbot) |
27 RENAME mcbot) |
28 |
28 |
29 EXEC_PROGRAM(msgfmt ../locale ARGS -o de/LC_MESSAGES/mcbot.mo de/mcbot.po) |
29 FIND_PROGRAM(MSGFMT_PROG msgfmt) |
|
30 IF (MSGFMT_PROG) |
|
31 EXEC_PROGRAM(${MSGFMT_PROG} ../locale ARGS -o de/LC_MESSAGES/mcbot.mo de/mcbot.po) |
|
32 ELSE(MSGFMT_PROG) |
|
33 MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext") |
|
34 ENDIF (MSGFMT_PROG) |
30 |
35 |
31 # Search required libraries |
36 # Search required libraries |
32 FIND_LIBRARY(GDBM_LIB NAMES gdbm |
37 FIND_LIBRARY(GDBM_LIB NAMES gdbm |
33 PATHS /usr/lib/ /usr/local/lib) |
38 PATHS /usr/lib/ /usr/local/lib) |
34 IF (GDBM_LIB) |
39 IF (GDBM_LIB) |
35 TARGET_LINK_LIBRARIES(mcbot ${GDBM_LIB}) |
40 TARGET_LINK_LIBRARIES(mcbot ${GDBM_LIB}) |
36 TARGET_LINK_LIBRARIES(dbtool ${GDBM_LIB}) |
41 TARGET_LINK_LIBRARIES(dbtool ${GDBM_LIB}) |
37 ELSE(GDBM_LIB) |
42 ELSE(GDBM_LIB) |
38 MESSAGE("YOU NEED TO INSTALL libgdbm-dev") |
43 MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL libgdbm-dev") |
39 ENDIF (GDBM_LIB) |
44 ENDIF (GDBM_LIB) |