add todos

This commit is contained in:
2025-12-21 22:22:59 +01:00
parent 22a1b7e369
commit 0101ea1ec0
10 changed files with 273 additions and 36 deletions

View File

@@ -12,9 +12,10 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(GTKMM REQUIRED gtkmm-4.0)
pkg_check_modules(LAYERSHELL REQUIRED gtk4-layer-shell-0)
pkg_check_modules(WEBKIT REQUIRED webkitgtk-6.0)
pkg_check_modules(SQLITE3 REQUIRED sqlite3)
include_directories(${GTKMM_INCLUDE_DIRS} ${LAYERSHELL_INCLUDE_DIRS} ${WEBKIT_INCLUDE_DIRS})
link_directories(${GTKMM_LIBRARY_DIRS} ${LAYERSHELL_LIBRARY_DIRS} ${WEBKIT_LIBRARY_DIRS})
include_directories(${GTKMM_INCLUDE_DIRS} ${LAYERSHELL_INCLUDE_DIRS} ${WEBKIT_INCLUDE_DIRS} ${SQLITE3_INCLUDE_DIRS})
link_directories(${GTKMM_LIBRARY_DIRS} ${LAYERSHELL_LIBRARY_DIRS} ${WEBKIT_LIBRARY_DIRS} ${SQLITE3_LIBRARY_DIRS})
add_library(bar_lib)
target_sources(bar_lib
@@ -29,6 +30,7 @@ target_sources(bar_lib
src/widgets/webWidget.cpp
src/services/todo.cpp
src/services/sqliteTodoAdapter.cpp
src/services/hyprland.cpp
src/services/tray.cpp
src/services/notifications.cpp
@@ -45,7 +47,7 @@ include_directories(bar_lib PRIVATE
add_executable(bar main.cpp)
target_link_libraries(bar bar_lib ${GTKMM_LIBRARIES} ${LAYERSHELL_LIBRARIES} ${WEBKIT_LIBRARIES})
target_link_libraries(bar bar_lib ${GTKMM_LIBRARIES} ${LAYERSHELL_LIBRARIES} ${WEBKIT_LIBRARIES} ${SQLITE3_LIBRARIES})
# Copy `resources/bar.css` into the build directory when it changes
set(RES_SRC "${CMAKE_CURRENT_SOURCE_DIR}/resources/bar.css")