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.

32 lines
973 B

  1. cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
  2. project(notification-daemon CXX)
  3. include_directories(${PROJECT_SOURCE_DIR}
  4. ${PROJECT_SOURCE_DIR}/thirdparty/SQLiteCpp/include/SQLiteCpp
  5. )
  6. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
  7. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(notdir $(abspath $@))\"'")
  8. add_executable(notification-daemon
  9. calendar-daemon.cpp
  10. util/calendar_parsing.cpp
  11. util/notifications.h
  12. io/debug.cpp
  13. ical/Alarm.cpp
  14. ical/Event.cpp
  15. ical/IcalObject.h
  16. db/create.h
  17. db/Schema.cpp
  18. db/db.h
  19. db/migrations/Migration.cpp
  20. db/migrations/builder/TableBuilder.h
  21. db/migrations/builder/Table.h
  22. db/migrations/builder/Table.cpp
  23. db/migrations/1624829187_create_events.h
  24. )
  25. add_definitions(-DLOG_DEBUG)
  26. target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl)
  27. target_compile_options(notification-daemon PRIVATE -g)