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.

42 lines
1.3 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  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.cpp
  16. db/create.h
  17. db/fetch_alarms.h
  18. db/update.cpp
  19. db/Schema.cpp
  20. db/db.cpp
  21. db/FSWatcher.cpp
  22. db/migrations/Migration.cpp
  23. db/migrations/builder/Table.cpp
  24. db/statements/builder/Statement.cpp
  25. db/statements/builder/SelectStatementBuilder.cpp
  26. db/statements/builder/InsertStatementBuilder.cpp
  27. db/statements/builder/UpdateStatementBuilder.cpp
  28. db/statements/builder/DeleteStatementBuilder.cpp
  29. )
  30. set(CMAKE_VERBOSE_MAKEFILE off)
  31. add_definitions(-DLOG_DEBUG)
  32. get_directory_property( DirDefs DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS )
  33. foreach( d ${DirDefs} )
  34. message( STATUS "Found Define: " ${d} )
  35. endforeach()
  36. target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl inotify-cpp)
  37. target_compile_options(notification-daemon PRIVATE -g)