/[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 142 by torben, Sun Dec 7 15:51:02 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    
8  link_directories(${SMSDAEMON_BINARY_DIR}/plugins)  ADD_SUBDIRECTORY(plugins)
9  include_directories( ${SMSDAEMON_SOURCE_DIR} ${SMSDAEMON_SOURCE_DIR}/plugins)  ADD_SUBDIRECTORY(tasks)
10    ADD_SUBDIRECTORY(serialport)
11    
12  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)  LINK_DIRECTORIES ( ${SMSDAEMON_BINARY_DIR} )
13    INCLUDE_DIRECTORIES( ${SMSDAEMON_SOURCE_DIR}/ )
14    
15  target_link_libraries(smsdaemon plugins)  EXECUTE_PROCESS(
16            COMMAND "./genversion.sh"
17            WORKING_DIRECTORY "."
18            ERROR_QUIET
19    )
20    
21    
22    
23    ADD_LIBRARY(smsdaemoncore SHARED
24            GsmModem.cpp Sms.cpp common.cpp util.cpp TaskManager.cpp daemon.cpp kbhit.cpp PluginManager.cpp Plugin.cpp
25            SmsPdu.cpp SmsHelper.cpp SmsDaemon.cpp Task.cpp Spooler.cpp
26            )
27    
28    ADD_EXECUTABLE(smsdaemon main.cpp)
29    TARGET_LINK_LIBRARIES(smsdaemon smsdaemoncore smsplugins smstasks serialport)
30    
31    ADD_EXECUTABLE(tester tester.cpp)
32    TARGET_LINK_LIBRARIES(tester smsdaemoncore smsplugins smstasks serialport)
33    
34    ADD_EXECUTABLE(smsqueue smsqueue.cpp util.cpp Spooler.cpp)
35    
36    INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue
37            RUNTIME DESTINATION bin
38            LIBRARY DESTINATION lib
39            )

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

  ViewVC Help
Powered by ViewVC 1.1.20