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

Diff of /smsdaemon/CMakeLists.txt

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

revision 59 by torben, Wed Jun 11 19:42:24 2008 UTC revision 193 by torben, Wed Dec 17 23:43:26 2008 UTC
# Line 1  Line 1 
1  project(SMSDAEMON CXX)  PROJECT(SMSDAEMON CXX)
2    CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3    
4  #set(CMAKE_VERBOSE_MAKEFILE 1)  #SET(CMAKE_VERBOSE_MAKEFILE 1)
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  add_subdirectory(plugins)  ADD_SUBDIRECTORY(plugins)
9    ADD_SUBDIRECTORY(tasks)
10    ADD_SUBDIRECTORY(serialport)
11    
12  link_directories( ${SMSDAEMON_BINARY_DIR} ${SMSDAEMON_BINARY_DIR}/plugins)  LINK_DIRECTORIES ( ${SMSDAEMON_BINARY_DIR} )
13  include_directories( ${SMSDAEMON_SOURCE_DIR} ${SMSDAEMON_SOURCE_DIR}/plugins)  INCLUDE_DIRECTORIES( ${SMSDAEMON_SOURCE_DIR}/ )
14    
15    EXECUTE_PROCESS(
16            COMMAND "./genversion.sh"
17            WORKING_DIRECTORY "."
18            ERROR_QUIET
19    )
20    
 add_library(smsdaemoncore SHARED GsmModem.cpp PosixSignalDispatcher.cpp Sms.cpp common.cpp util.cpp SerialPort.cpp TaskManager.cpp daemon.cpp kbhit.cpp PluginManager.cpp Plugin.cpp SmsPdu.cpp)  
21    
 add_executable(smsdaemon main.cpp)  
22    
23  target_link_libraries(smsdaemon smsdaemoncore plugins)  ADD_LIBRARY(smsdaemoncore SHARED
24            ModemTransceiver.cpp Sms.cpp Common.cpp Util.cpp TaskManager.cpp daemon.cpp kbhit.cpp
25            PluginManager.cpp Plugin.cpp SmsPdu.cpp SmsDaemon.cpp
26            Task.cpp Spooler.cpp Value.cpp ConfigFile.cpp DebugTransceiver.cpp
27            SmsToolTransceiver.cpp Logger.cpp HttpClient.cpp
28            )
29    
30    ADD_EXECUTABLE(smsdaemon main.cpp)
31    TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport curl)
32    
33  add_executable(tester tester.cpp)  ADD_EXECUTABLE(tester tester.cpp)
34  target_link_libraries(tester smsdaemoncore plugins)  TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport curl)
35    
36    ADD_EXECUTABLE(smsqueue smsqueue.cpp Util.cpp Spooler.cpp)
37    
38    INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue
39            RUNTIME DESTINATION bin
40            LIBRARY DESTINATION lib
41            )

Legend:
Removed from v.59  
changed lines
  Added in v.193

  ViewVC Help
Powered by ViewVC 1.1.20