5 |
SET(CMAKE_BUILD_TYPE DEBUG) |
SET(CMAKE_BUILD_TYPE DEBUG) |
6 |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall") |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall") |
7 |
|
|
8 |
|
|
9 |
|
FIND_PACKAGE(CURL) |
10 |
|
|
11 |
|
|
12 |
|
IF(CURL_FOUND) |
13 |
|
ELSE(CURL_FOUND) |
14 |
|
MESSAGE(FATAL_ERROR, "Could not find libCURL") |
15 |
|
RETURN() |
16 |
|
ENDIF(CURL_FOUND) |
17 |
|
|
18 |
ADD_SUBDIRECTORY(plugins) |
ADD_SUBDIRECTORY(plugins) |
19 |
ADD_SUBDIRECTORY(tasks) |
ADD_SUBDIRECTORY(tasks) |
20 |
ADD_SUBDIRECTORY(serialport) |
ADD_SUBDIRECTORY(serialport) |
31 |
|
|
32 |
|
|
33 |
ADD_LIBRARY(smsdaemoncore SHARED |
ADD_LIBRARY(smsdaemoncore SHARED |
34 |
GsmModem.cpp Sms.cpp common.cpp util.cpp TaskManager.cpp daemon.cpp kbhit.cpp PluginManager.cpp Plugin.cpp |
ModemTransceiver.cpp Sms.cpp Common.cpp Util.cpp TaskManager.cpp daemon.cpp kbhit.cpp |
35 |
SmsPdu.cpp SmsHelper.cpp SmsDaemon.cpp Task.cpp Spooler.cpp |
PluginManager.cpp Plugin.cpp SmsPdu.cpp SmsDaemon.cpp |
36 |
|
Task.cpp Spooler.cpp Value.cpp ConfigFile.cpp DebugTransceiver.cpp |
37 |
|
SmsToolTransceiver.cpp Logger.cpp HttpClient.cpp ProxyTransceiver.cpp |
38 |
) |
) |
39 |
|
|
40 |
ADD_EXECUTABLE(smsdaemon main.cpp) |
ADD_EXECUTABLE(smsdaemon main.cpp) |
41 |
TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport) |
TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport curl) |
42 |
|
|
43 |
ADD_EXECUTABLE(tester tester.cpp) |
ADD_EXECUTABLE(tester tester.cpp) |
44 |
TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport) |
TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport curl) |
45 |
|
|
46 |
ADD_EXECUTABLE(smsqueue smsqueue.cpp util.cpp Spooler.cpp) |
ADD_EXECUTABLE(smsqueue smsqueue.cpp Util.cpp Spooler.cpp) |
47 |
|
|
48 |
INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue |
INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue |
49 |
RUNTIME DESTINATION bin |
RUNTIME DESTINATION bin |