--- smsdaemon/CMakeLists.txt 2008/12/08 21:28:40 157 +++ smsdaemon/CMakeLists.txt 2009/09/16 09:20:01 324 @@ -5,6 +5,16 @@ SET(CMAKE_BUILD_TYPE DEBUG) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall") + +FIND_PACKAGE(CURL) +FIND_PACKAGE(EXPAT) + +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) @@ -21,19 +31,20 @@ 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 + ModemTransceiver.cpp Sms.cpp Common.cpp Util.cpp TaskManager.cpp daemon.cpp kbhit.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 ProxyTransceiver.cpp ProxyPlugin.cpp + AccessManager.cpp ) ADD_EXECUTABLE(smsdaemon main.cpp) -TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport) +TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport curl expat) ADD_EXECUTABLE(tester tester.cpp) -TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport) +TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport curl expat) -ADD_EXECUTABLE(smsqueue smsqueue.cpp util.cpp Spooler.cpp) +ADD_EXECUTABLE(smsqueue smsqueue.cpp Util.cpp Spooler.cpp) INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue RUNTIME DESTINATION bin