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

Diff of /smsdaemon/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 27 by torben, Mon Jun 9 19:22:59 2008 UTC revision 217 by torben, Tue Dec 23 14:20:43 2008 UTC
# Line 1  Line 1 
1  project(SMSDAEMON)  PROJECT(SMSDAEMON CXX)
2    CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3    
4  add_subdirectory(plugins)  #SET(CMAKE_VERBOSE_MAKEFILE 1)
5    SET(CMAKE_BUILD_TYPE DEBUG)
6    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall")
7    
 link_directories(${SMSDAEMON_BINARY_DIR}/plugins)  
 include_directories( ${SMSDAEMON_SOURCE_DIR} ${SMSDAEMON_SOURCE_DIR}/plugins)  
8    
9  add_executable(smsdaemon GsmModem.cpp PosixSignalDispatcher.cpp Sms.cpp common.cpp main.cpp util.cpp PluginManager.cpp SerialPort.cpp TaskManager.cpp daemon.cpp kbhit.cpp)  FIND_PACKAGE(CURL)
10    
 target_link_libraries(smsdaemon plugins)  
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            )

Legend:
Removed from v.27  
changed lines
  Added in v.217

  ViewVC Help
Powered by ViewVC 1.1.20