quick commit
This commit is contained in:
@@ -12,10 +12,12 @@ 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)
|
||||
pkg_check_modules(CURL REQUIRED libcurl)
|
||||
|
||||
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})
|
||||
find_package(nlohmann_json 3.2.0 REQUIRED)
|
||||
|
||||
include_directories(${GTKMM_INCLUDE_DIRS} ${LAYERSHELL_INCLUDE_DIRS} ${WEBKIT_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} ${nlohmann_json_INCLUDE_DIRS})
|
||||
link_directories(${GTKMM_LIBRARY_DIRS} ${LAYERSHELL_LIBRARY_DIRS} ${WEBKIT_LIBRARY_DIRS} ${CURL_LIBRARY_DIRS})
|
||||
|
||||
add_library(bar_lib)
|
||||
target_sources(bar_lib
|
||||
@@ -29,20 +31,16 @@ target_sources(bar_lib
|
||||
src/widgets/volumeWidget.cpp
|
||||
src/widgets/webWidget.cpp
|
||||
|
||||
src/services/todo.cpp
|
||||
src/services/sqliteTodoAdapter.cpp
|
||||
src/services/hyprland.cpp
|
||||
src/services/tray.cpp
|
||||
src/services/notifications.cpp
|
||||
src/services/bluetooth.cpp
|
||||
|
||||
src/widgets/tray.cpp
|
||||
src/widgets/todo.cpp
|
||||
src/widgets/bluetooth.cpp
|
||||
src/widgets/controlCenter.cpp
|
||||
|
||||
src/components/popover.cpp
|
||||
src/components/todoEntry.cpp
|
||||
src/components/base/button.cpp
|
||||
)
|
||||
include_directories(bar_lib PRIVATE
|
||||
@@ -51,7 +49,7 @@ include_directories(bar_lib PRIVATE
|
||||
|
||||
add_executable(bar main.cpp)
|
||||
|
||||
target_link_libraries(bar bar_lib ${GTKMM_LIBRARIES} ${LAYERSHELL_LIBRARIES} ${WEBKIT_LIBRARIES} ${SQLITE3_LIBRARIES})
|
||||
target_link_libraries(bar bar_lib ${GTKMM_LIBRARIES} ${LAYERSHELL_LIBRARIES} ${WEBKIT_LIBRARIES} ${CURL_LIBRARIES} nlohmann_json::nlohmann_json)
|
||||
|
||||
# Copy `resources/bar.css` into the build directory when it changes
|
||||
set(RES_SRC "${CMAKE_CURRENT_SOURCE_DIR}/resources/bar.css")
|
||||
|
||||
Reference in New Issue
Block a user