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

Annotation of /smsdaemon/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (hide annotations) (download)
Sun Dec 7 00:59:05 2008 UTC (15 years, 5 months ago) by torben
File MIME type: text/plain
File size: 1075 byte(s)
Added spooling (queing) function, with a standalone application(smsqueue) to put new messages 
into the spool dir.

1 torben 45 project(SMSDAEMON CXX)
2 torben 27
3 torben 130 cmake_minimum_required(VERSION 2.6)
4    
5 torben 28 #set(CMAKE_VERBOSE_MAKEFILE 1)
6     set(CMAKE_BUILD_TYPE DEBUG)
7 torben 30 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall")
8 torben 28
9 torben 27 add_subdirectory(plugins)
10 torben 82 add_subdirectory(tasks)
11 torben 91 add_subdirectory(serialport)
12 torben 27
13 torben 45 link_directories( ${SMSDAEMON_BINARY_DIR} ${SMSDAEMON_BINARY_DIR}/plugins)
14 torben 132 include_directories( ${SMSDAEMON_SOURCE_DIR}/ )
15 torben 27
16 torben 99 EXECUTE_PROCESS(
17 torben 101 COMMAND "./genversion.sh"
18 torben 99 WORKING_DIRECTORY "."
19     ERROR_QUIET
20     )
21 torben 27
22 torben 99
23    
24 torben 132 add_library(smsdaemoncore SHARED GsmModem.cpp Sms.cpp common.cpp util.cpp TaskManager.cpp daemon.cpp kbhit.cpp PluginManager.cpp Plugin.cpp SmsPdu.cpp SmsDaemon.cpp Task.cpp Spooler.cpp)
25 torben 27
26 torben 45 add_executable(smsdaemon main.cpp)
27 torben 91 target_link_libraries(smsdaemon smsdaemoncore plugins tasks serialport)
28 torben 45
29 torben 47 add_executable(tester tester.cpp)
30 torben 91 target_link_libraries(tester smsdaemoncore plugins tasks serialport)
31 torben 131
32 torben 132 add_executable(smsqueue smsqueue.cpp)
33     target_link_libraries(smsqueue smsdaemoncore plugins tasks serialport)
34    
35     INSTALL (TARGETS smsdaemon smsdaemoncore smsqueue
36 torben 131 RUNTIME DESTINATION bin
37     LIBRARY DESTINATION lib
38     )

  ViewVC Help
Powered by ViewVC 1.1.20