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.

36 lines
1.1 KiB

  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/update.h
  18. db/Schema.cpp
  19. db/db.cpp
  20. db/migrations/Migration.cpp
  21. db/migrations/builder/Table.cpp
  22. db/statements/builder/Statement.cpp
  23. )
  24. set(CMAKE_VERBOSE_MAKEFILE off)
  25. add_definitions(-DLOG_DEBUG)
  26. get_directory_property( DirDefs DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS )
  27. foreach( d ${DirDefs} )
  28. message( STATUS "Found Define: " ${d} )
  29. endforeach()
  30. target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl)
  31. target_compile_options(notification-daemon PRIVATE -g)