|
|
@ -1,12 +1,15 @@ |
|
|
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) |
|
|
|
cmake_minimum_required(VERSION 3.2 FATAL_ERROR) |
|
|
|
project(notification-daemon CXX) |
|
|
|
# get all *.cpp files recursively |
|
|
|
#file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/*.cpp) |
|
|
|
#file(GLOB_RECURSE HEADER_FILES ${PROJECT_SOURCE_DIR}/*.h) |
|
|
|
include_directories(${PROJECT_SOURCE_DIR}) |
|
|
|
#add_executable(notification-daemon ${SRC_FILES} ${HEADER_FILES}) |
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR} |
|
|
|
${PROJECT_SOURCE_DIR}/thirdparty/SQLiteCpp/include/SQLiteCpp |
|
|
|
) |
|
|
|
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp) |
|
|
|
|
|
|
|
|
|
|
|
add_executable(notification-daemon |
|
|
|
calendar-daemon |
|
|
|
calendar-daemon.cpp |
|
|
|
util/calendar_parsing.cpp |
|
|
|
util/notifications.h |
|
|
|
ical/Alarm.cpp |
|
|
@ -15,5 +18,6 @@ add_executable(notification-daemon |
|
|
|
io/debug.cpp |
|
|
|
) |
|
|
|
add_definitions(-DLOG_DEBUG) |
|
|
|
target_link_libraries(notification-daemon ical boost_system boost_filesystem) |
|
|
|
|
|
|
|
target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl) |
|
|
|
target_compile_options(notification-daemon PRIVATE -g) |