--- smsdaemon/CMakeLists.txt 2008/12/08 21:49:49 158 +++ smsdaemon/CMakeLists.txt 2008/12/18 00:03:05 194 @@ -5,6 +5,16 @@ SET(CMAKE_BUILD_TYPE DEBUG) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall") + +FIND_PACKAGE(CURL) + + +IF(CURL_FOUND) +ELSE(CURL_FOUND) + MESSAGE(FATAL_ERROR, "Could not find libCURL") + RETURN() +ENDIF(CURL_FOUND) + ADD_SUBDIRECTORY(plugins) ADD_SUBDIRECTORY(tasks) ADD_SUBDIRECTORY(serialport) @@ -22,16 +32,16 @@ ADD_LIBRARY(smsdaemoncore SHARED ModemTransceiver.cpp Sms.cpp Common.cpp Util.cpp TaskManager.cpp daemon.cpp kbhit.cpp - PluginManager.cpp Plugin.cpp SmsPdu.cpp SmsHelper.cpp SmsDaemon.cpp + PluginManager.cpp Plugin.cpp SmsPdu.cpp SmsDaemon.cpp Task.cpp Spooler.cpp Value.cpp ConfigFile.cpp DebugTransceiver.cpp - SmsToolTransceiver.cpp Logger.cpp + SmsToolTransceiver.cpp Logger.cpp HttpClient.cpp ) ADD_EXECUTABLE(smsdaemon main.cpp) -TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport) +TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport curl) ADD_EXECUTABLE(tester tester.cpp) -TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport) +TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport curl) ADD_EXECUTABLE(smsqueue smsqueue.cpp Util.cpp Spooler.cpp)