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 |
|
|
|
9 |
torben |
45 |
link_directories( ${SMSDAEMON_BINARY_DIR} ${SMSDAEMON_BINARY_DIR}/plugins) |
10 |
torben |
27 |
include_directories( ${SMSDAEMON_SOURCE_DIR} ${SMSDAEMON_SOURCE_DIR}/plugins) |
11 |
|
|
|
12 |
|
|
|
13 |
torben |
54 |
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) |
14 |
torben |
27 |
|
15 |
torben |
45 |
add_executable(smsdaemon main.cpp) |
16 |
|
|
|
17 |
|
|
target_link_libraries(smsdaemon smsdaemoncore plugins) |
18 |
|
|
|
19 |
torben |
47 |
|
20 |
|
|
add_executable(tester tester.cpp) |
21 |
|
|
target_link_libraries(tester smsdaemoncore plugins) |