Browse Source

init SQLiteCpp submodule

main
Stefan Pranger 3 years ago
parent
commit
2bf8f8c777
  1. 3
      .gitmodules
  2. 20
      CMakeLists.txt
  3. 1
      thirdparty/SQLiteCpp

3
.gitmodules

@ -0,0 +1,3 @@
[submodule "thirdparty/SQLiteCpp"]
path = thirdparty/SQLiteCpp
url = https://github.com/SRombauts/SQLiteCpp

20
CMakeLists.txt

@ -1,12 +1,15 @@
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
project(notification-daemon CXX)
# get all *.cpp files recursively
#file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/*.cpp)
#file(GLOB_RECURSE HEADER_FILES ${PROJECT_SOURCE_DIR}/*.h)
include_directories(${PROJECT_SOURCE_DIR})
#add_executable(notification-daemon ${SRC_FILES} ${HEADER_FILES})
include_directories(${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/thirdparty/SQLiteCpp/include/SQLiteCpp
)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
add_executable(notification-daemon
calendar-daemon
calendar-daemon.cpp
util/calendar_parsing.cpp
util/notifications.h
ical/Alarm.cpp
@ -15,5 +18,6 @@ add_executable(notification-daemon
io/debug.cpp
)
add_definitions(-DLOG_DEBUG)
target_link_libraries(notification-daemon ical boost_system boost_filesystem)
target_link_libraries(notification-daemon ical boost_system boost_filesystem SQLiteCpp sqlite3 pthread dl)
target_compile_options(notification-daemon PRIVATE -g)

1
thirdparty/SQLiteCpp

@ -0,0 +1 @@
Subproject commit 0c46d86e0d82031924c5d10bf9b23fa917ba037e
Loading…
Cancel
Save