src/CMakeLists.txt
changeset 25 a0fad312ea30
parent 24 f68808ae40b9
child 26 767f79e69de1
equal deleted inserted replaced
24:f68808ae40b9 25:a0fad312ea30
    23 INSTALL(TARGETS mcbot RUNTIME DESTINATION sbin)
    23 INSTALL(TARGETS mcbot RUNTIME DESTINATION sbin)
    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 INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION /usr/lib/cgi-bin/)
    28 
    29 
       
    30 # Search required programs
    29 FIND_PROGRAM(MSGFMT_PROG msgfmt)
    31 FIND_PROGRAM(MSGFMT_PROG msgfmt)
    30 IF (MSGFMT_PROG)
    32 IF (MSGFMT_PROG)
    31     EXEC_PROGRAM(${MSGFMT_PROG} ../locale ARGS -o de/LC_MESSAGES/mcbot.mo de/mcbot.po)
    33     EXEC_PROGRAM(${MSGFMT_PROG} ../locale ARGS -o de/LC_MESSAGES/mcbot.mo de/mcbot.po)
    32 ELSE(MSGFMT_PROG)
    34 ELSE(MSGFMT_PROG)
    33 	MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
    35 	MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")