1 |
torben |
45 |
project(SMSDAEMON CXX) |
2 |
torben |
27 |
|
3 |
torben |
28 |
#set(CMAKE_VERBOSE_MAKEFILE 1) |
4 |
|
|
set(CMAKE_BUILD_TYPE DEBUG) |
5 |
torben |
30 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall") |
6 |
torben |
28 |
|
7 |
torben |
27 |
add_subdirectory(plugins) |
8 |
torben |
82 |
add_subdirectory(tasks) |
9 |
torben |
91 |
add_subdirectory(serialport) |
10 |
torben |
27 |
|
11 |
torben |
45 |
link_directories( ${SMSDAEMON_BINARY_DIR} ${SMSDAEMON_BINARY_DIR}/plugins) |
12 |
torben |
91 |
include_directories( ${SMSDAEMON_SOURCE_DIR} ${SMSDAEMON_SOURCE_DIR}/plugins ${SMSDAEMON_SOURCE_DIR}/serialport) |
13 |
torben |
27 |
|
14 |
|
|
|
15 |
torben |
91 |
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) |
16 |
torben |
27 |
|
17 |
torben |
45 |
add_executable(smsdaemon main.cpp) |
18 |
|
|
|
19 |
torben |
91 |
target_link_libraries(smsdaemon smsdaemoncore plugins tasks serialport) |
20 |
torben |
45 |
|
21 |
torben |
47 |
|
22 |
|
|
add_executable(tester tester.cpp) |
23 |
torben |
91 |
target_link_libraries(tester smsdaemoncore plugins tasks serialport) |