You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
897 B
30 lines
897 B
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
|
|
project(notification-daemon CXX)
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}
|
|
${PROJECT_SOURCE_DIR}/thirdparty/SQLiteCpp/include/SQLiteCpp
|
|
)
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(notdir $(abspath $@))\"'")
|
|
|
|
|
|
add_executable(notification-daemon
|
|
calendar-daemon.cpp
|
|
util/calendar_parsing.cpp
|
|
util/notifications.h
|
|
io/debug.cpp
|
|
ical/Alarm.cpp
|
|
ical/Event.cpp
|
|
ical/IcalObject.h
|
|
db/create.h
|
|
db/Schema.cpp
|
|
db/db.h
|
|
db/migrations/Migration.cpp
|
|
db/migrations/builder/Table.cpp
|
|
db/statements/builder/Statement.cpp
|
|
)
|
|
add_definitions(-DLOG_DEBUG)
|
|
|
|
target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl)
|
|
target_compile_options(notification-daemon PRIVATE -g)
|