From 2bf8f8c777e54bed97881fc0074e30001e0b3742 Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Sun, 27 Jun 2021 17:30:24 +0200 Subject: [PATCH] init SQLiteCpp submodule --- .gitmodules | 3 +++ CMakeLists.txt | 20 ++++++++++++-------- thirdparty/SQLiteCpp | 1 + 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .gitmodules create mode 160000 thirdparty/SQLiteCpp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..70996b3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "thirdparty/SQLiteCpp"] + path = thirdparty/SQLiteCpp + url = https://github.com/SRombauts/SQLiteCpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f323b8..aa89c3a 100644 --- a/CMakeLists.txt +++ b/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) diff --git a/thirdparty/SQLiteCpp b/thirdparty/SQLiteCpp new file mode 160000 index 0000000..0c46d86 --- /dev/null +++ b/thirdparty/SQLiteCpp @@ -0,0 +1 @@ +Subproject commit 0c46d86e0d82031924c5d10bf9b23fa917ba037e