Added config load from files(main/service).
[bpdyndnsd] / CMakeLists.txt
index e20c49f..2c0b51f 100644 (file)
@@ -20,3 +20,21 @@ IF(BOOST_PROGRAM_OPTIONS)
 ELSE(BOOST_PROGRAM_OPTIONS)
     MESSAGE(FATAL_ERROR "Could not find boost/program_options")
 ENDIF(BOOST_PROGRAM_OPTIONS)
+
+# find boost_filesystem and link to bpdyndnsd
+FIND_LIBRARY( BOOST_FILESYSTEM libboost_filesystem.so )
+IF(BOOST_FILESYSTEM)
+    MESSAGE(STATUS "Found boost/filesystem as ${BOOST_FILESYSTEM}")
+    TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_FILESYSTEM})
+ELSE(BOOST_FILESYSTEM)
+    MESSAGE(FATAL_ERROR "Could not find boost/filesystem")
+ENDIF(BOOST_FILESYSTEM)
+
+# find boost_filesystem and link to bpdyndnsd
+FIND_LIBRARY( BOOST_REGEX libboost_regex.so )
+IF(BOOST_REGEX)
+    MESSAGE(STATUS "Found boost/regex as ${BOOST_REGEX}")
+    TARGET_LINK_LIBRARIES(bin/bpdyndnsd ${BOOST_REGEX})
+ELSE(BOOST_REGEX)
+    MESSAGE(FATAL_ERROR "Could not find boost/regex")
+ENDIF(BOOST_REGEX)