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.cpp db/create.h db/fetch_alarms.h db/update.cpp db/Schema.cpp db/db.cpp db/FSWatcher.cpp db/migrations/Migration.cpp db/migrations/builder/Table.cpp db/statements/builder/Statement.cpp db/statements/builder/SelectStatementBuilder.cpp db/statements/builder/InsertStatementBuilder.cpp ) set(CMAKE_VERBOSE_MAKEFILE off) add_definitions(-DLOG_DEBUG) get_directory_property( DirDefs DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS ) foreach( d ${DirDefs} ) message( STATUS "Found Define: " ${d} ) endforeach() target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl inotify-cpp) target_compile_options(notification-daemon PRIVATE -g)