summaryrefslogtreecommitdiff
path: root/accel-pppd/logs
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-12-27 11:16:05 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-12-27 11:16:05 +0400
commitee41cba691ab9f6461f4933461cf82be161333de (patch)
tree52adb462650a2944fa0e7b667025a4f216fb5cce /accel-pppd/logs
parentc8bc8763ea6980ef3e3fa7e3dbe2a598a1169de5 (diff)
downloadaccel-ppp-ee41cba691ab9f6461f4933461cf82be161333de.tar.gz
accel-ppp-ee41cba691ab9f6461f4933461cf82be161333de.zip
implemented logging to system logger
Diffstat (limited to 'accel-pppd/logs')
-rw-r--r--accel-pppd/logs/CMakeLists.txt38
1 files changed, 32 insertions, 6 deletions
diff --git a/accel-pppd/logs/CMakeLists.txt b/accel-pppd/logs/CMakeLists.txt
index ce909b6..b10163f 100644
--- a/accel-pppd/logs/CMakeLists.txt
+++ b/accel-pppd/logs/CMakeLists.txt
@@ -1,11 +1,37 @@
-ADD_LIBRARY(log_file SHARED log_file.c)
-TARGET_LINK_LIBRARIES(log_file rt)
+IF(NOT DEFINED LOG_FILE)
+ SET(LOG_FILE TRUE)
+ENDIF(NOT DEFINED LOG_FILE)
-ADD_LIBRARY(log_tcp SHARED log_tcp.c)
+IF(NOT DEFINED LOG_TCP)
+ SET(LOG_TCP TRUE)
+ENDIF(NOT DEFINED LOG_TCP)
-INSTALL(TARGETS log_file log_tcp
- LIBRARY DESTINATION lib/accel-ppp
-)
+IF(NOT DEFINED LOG_SYSLOG)
+ SET(LOG_SYSLOG TRUE)
+ENDIF(NOT DEFINED LOG_SYSLOG)
+
+
+IF(LOG_FILE)
+ ADD_LIBRARY(log_file SHARED log_file.c)
+ TARGET_LINK_LIBRARIES(log_file rt)
+ INSTALL(TARGETS log_file
+ LIBRARY DESTINATION lib/accel-ppp
+ )
+ENDIF(LOG_FILE)
+
+IF(LOG_TCP)
+ ADD_LIBRARY(log_tcp SHARED log_tcp.c)
+ INSTALL(TARGETS log_tcp
+ LIBRARY DESTINATION lib/accel-ppp
+ )
+ENDIF(LOG_TCP)
+
+IF(LOG_SYSLOG)
+ ADD_LIBRARY(log_syslog SHARED log_syslog.c)
+ INSTALL(TARGETS log_syslog
+ LIBRARY DESTINATION lib/accel-ppp
+ )
+ENDIF(LOG_SYSLOG)
IF(LOG_PGSQL)
ADD_LIBRARY(log_pgsql SHARED log_pgsql.c)