2014-07-18 18:02:53 +01:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2016-09-07 02:27:39 +01:00
|
|
|
@@ -241,8 +241,14 @@
|
2014-07-18 18:02:53 +01:00
|
|
|
|
|
|
|
if (UNIX)
|
2016-09-07 02:27:39 +01:00
|
|
|
install( TARGETS uhub uhub-passwd RUNTIME DESTINATION bin )
|
|
|
|
- install( TARGETS mod_example mod_welcome mod_logging mod_auth_simple mod_auth_sqlite mod_chat_history mod_chat_history_sqlite mod_chat_only mod_topic mod_no_guest_downloads DESTINATION /usr/lib/uhub/ OPTIONAL )
|
2014-07-18 18:02:53 +01:00
|
|
|
- install( FILES ${CMAKE_SOURCE_DIR}/doc/uhub.conf ${CMAKE_SOURCE_DIR}/doc/plugins.conf ${CMAKE_SOURCE_DIR}/doc/rules.txt ${CMAKE_SOURCE_DIR}/doc/motd.txt DESTINATION /etc/uhub OPTIONAL )
|
|
|
|
+
|
2016-09-07 02:27:39 +01:00
|
|
|
+ set( PLUGINS mod_example mod_welcome mod_logging mod_auth_simple mod_chat_history mod_chat_only mod_topic mod_no_guest_downloads )
|
|
|
|
+
|
|
|
|
+ foreach( PLUGIN ${PLUGINS} )
|
|
|
|
+ install( TARGETS ${PLUGIN} DESTINATION $ENV{${PLUGIN}} OPTIONAL )
|
|
|
|
+ endforeach( PLUGIN )
|
2014-07-18 18:02:53 +01:00
|
|
|
+
|
|
|
|
+ install( FILES ${CMAKE_SOURCE_DIR}/doc/uhub.conf ${CMAKE_SOURCE_DIR}/doc/plugins.conf ${CMAKE_SOURCE_DIR}/doc/rules.txt ${CMAKE_SOURCE_DIR}/doc/motd.txt DESTINATION doc/ OPTIONAL )
|
2016-09-07 02:27:39 +01:00
|
|
|
endif()
|
|
|
|
|
2014-07-18 18:02:53 +01:00
|
|
|
|