diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,19 +13,18 @@ ADD_DEFINITIONS(-DBOT_VERSION=0.99) # Includes -INCLUDE_DIRECTORIES(../include) +INCLUDE_DIRECTORIES(../include /usr/local/include) # Target Definitions ADD_EXECUTABLE(mcbot compat.c config.c database.c irc.c main.c parse.c) ADD_EXECUTABLE(dbtool database.c dbtool.c) # Install Rules -INSTALL(TARGETS mcbot RUNTIME DESTINATION /usr/sbin) -INSTALL(TARGETS dbtool RUNTIME DESTINATION /usr/bin) +INSTALL(TARGETS mcbot RUNTIME DESTINATION sbin) +INSTALL(TARGETS dbtool RUNTIME DESTINATION bin) INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/mcbot/data/locale) -INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ - RENAME mcbot) -INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION /usr/lib/cgi-bin/) +INSTALL(PROGRAMS ../scripts/runbot DESTINATION etc/rc.d/ RENAME mcbot) +INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION lib/cgi-bin/) # Search required programs FIND_PROGRAM(MSGFMT_PROG msgfmt)