From 69603ff70fc5d9a50d2b62e3dbcfc4592e22d801 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 2 Oct 2012 23:01:57 +0200 Subject: [PATCH] Add install make rule. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98c9f8c..33b20e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,7 +179,15 @@ else() # add_definitions(-DDEBUG) endif() +if (UNIX) + install( TARGETS uhub RUNTIME DESTINATION bin ) + install( TARGETS mod_example mod_welcome mod_logging mod_auth_simple mod_auth_sqlite mod_chat_history mod_chat_only mod_topic DESTINATION /var/lib/uhub/ OPTIONAL ) + install( FILES ${CMAKE_SOURCE_DIR}/uhub.conf ${CMAKE_SOURCE_DIR}/plugins.conf ${CMAKE_SOURCE_DIR}/rules.txt ${CMAKE_SOURCE_DIR}/motd.txt DESTINATION /etc/uhub OPTIONAL ) + if (SQLITE_SUPPORT) + install( TARGETS uhub-passwd RUNTIME DESTINATION bin ) + endif() +endif()