/[projects]/smsdaemon/CMakeLists.txt
ViewVC logotype

Contents of /smsdaemon/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 217 - (show annotations) (download)
Tue Dec 23 14:20:43 2008 UTC (15 years, 4 months ago) by torben
File MIME type: text/plain
File size: 1315 byte(s)
Solved ToDo item:
'- Create a filtering method:
-  Incoming: which phonenumbers are allowed to invoke which plugins
-  Incoming could be solved with a PluginProxy() which intercepts the ExecutePlugin calls (only 
PluginManager needs to know about this one)'

Move the Access related items to AccessManager.*


1 PROJECT(SMSDAEMON CXX)
2 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3
4 #SET(CMAKE_VERBOSE_MAKEFILE 1)
5 SET(CMAKE_BUILD_TYPE DEBUG)
6 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)
19 ADD_SUBDIRECTORY(tasks)
20 ADD_SUBDIRECTORY(serialport)
21
22 LINK_DIRECTORIES ( ${SMSDAEMON_BINARY_DIR} )
23 INCLUDE_DIRECTORIES( ${SMSDAEMON_SOURCE_DIR}/ )
24
25 EXECUTE_PROCESS(
26 COMMAND "./genversion.sh"
27 WORKING_DIRECTORY "."
28 ERROR_QUIET
29 )
30
31
32
33 ADD_LIBRARY(smsdaemoncore SHARED
34 ModemTransceiver.cpp Sms.cpp Common.cpp Util.cpp TaskManager.cpp daemon.cpp kbhit.cpp
35 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 ProxyPlugin.cpp
38 AccessManager.cpp
39 )
40
41 ADD_EXECUTABLE(smsdaemon main.cpp)
42 TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport curl)
43
44 ADD_EXECUTABLE(tester tester.cpp)
45 TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport curl)
46
47 ADD_EXECUTABLE(smsqueue smsqueue.cpp Util.cpp Spooler.cpp)
48
49 INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue
50 RUNTIME DESTINATION bin
51 LIBRARY DESTINATION lib
52 )

  ViewVC Help
Powered by ViewVC 1.1.20