summaryrefslogtreecommitdiffstats
path: root/src/customdhcpcd
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-12-05 14:38:48 +0100
committerSebastian Schmelzer2011-12-05 14:38:48 +0100
commita0f2ef9ccaaba13198f680c438f7d4feb68da45d (patch)
tree930ad84710b9d4ddaf3eb6ec322699b1317a6dc9 /src/customdhcpcd
parentcleanup (diff)
downloadfbgui-a0f2ef9ccaaba13198f680c438f7d4feb68da45d.tar.gz
fbgui-a0f2ef9ccaaba13198f680c438f7d4feb68da45d.tar.xz
fbgui-a0f2ef9ccaaba13198f680c438f7d4feb68da45d.zip
finaly clean cmake files
Diffstat (limited to 'src/customdhcpcd')
-rw-r--r--src/customdhcpcd/CMakeLists.txt15
-rw-r--r--src/customdhcpcd/logwriter.c2
2 files changed, 5 insertions, 12 deletions
diff --git a/src/customdhcpcd/CMakeLists.txt b/src/customdhcpcd/CMakeLists.txt
index a716a5a..f257ab2 100644
--- a/src/customdhcpcd/CMakeLists.txt
+++ b/src/customdhcpcd/CMakeLists.txt
@@ -1,17 +1,10 @@
-cmake_minimum_required(VERSION 2.8)
-
-project(customdhcpdcd)
-
-set(CMAKE_C_FLAGS "-lrt")
-
-set(CUSTOMDHCPCD_SOURCES arp.c configure.c info.c logger.c socket.c client.c discover.c interface.c logwriter.c
-common.c dhcp.c duid.c ipv4ll.c signal.c)
-
-#file(GLOB_RECURSE CUSTOMDHCPCD_SOURCES *.c)
+file(GLOB_RECURSE CUSTOMDHCPCD_SOURCES *.c)
file(GLOB_RECURSE CUSTOMDHCPCD_HEADERS *.h)
add_library(customdhcpcd SHARED ${CUSTOMDHCPCD_SOURCES} ${CUSTOMDHCPCD_HEADERS})
+target_link_libraries(customdhcpcd rt)
#add_executable(customdhcpcd ${CUSTOMDHCPCD_SOURCES})
add_executable(cdhcpcd dhcpcd.c)
-target_link_libraries(cdhcpcd customdhcpcd )
+set_target_properties(cdhcpcd PROPERTIES LINKER_LANGUAGE C)
+target_link_libraries(cdhcpcd customdhcpcd)
diff --git a/src/customdhcpcd/logwriter.c b/src/customdhcpcd/logwriter.c
index e3316cb..5437438 100644
--- a/src/customdhcpcd/logwriter.c
+++ b/src/customdhcpcd/logwriter.c
@@ -89,7 +89,7 @@ void sendToQt(log_msg * msg)
msg->substatus, msg->msg);
if (ret < 1)
{
- log ger(LOG_INFO, "[fbgui] ERROR filling message buffer");
+ logger(LOG_INFO, "[fbgui] ERROR filling message buffer");
//syslog(LOG_INFO, "[fbgui] ERROR filling message buffer");
return;
}