Add config and command executor

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-10-22 11:27:13 +03:00
parent 237208d972
commit 8859504fed
7 changed files with 175 additions and 8 deletions

View File

@@ -84,13 +84,21 @@ FetchContent_Declare(
FetchContent_MakeAvailable(SQLiteCpp)
FetchContent_Declare(
cpptrace
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
GIT_TAG "v1.0.1"
cpptrace
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
GIT_TAG "v1.0.1"
GIT_SHALLOW 1
)
FetchContent_MakeAvailable(cpptrace)
FetchContent_Declare(
tomlplusplus
GIT_REPOSITORY https://github.com/marzer/tomlplusplus
GIT_TAG "v3.4.0"
GIT_SHALLOW 1
)
FetchContent_MakeAvailable(tomlplusplus)
add_subdirectory(vendor)
find_program(WAYLAND_SCANNER wayland-scanner REQUIRED)
@@ -189,6 +197,7 @@ add_custom_target(generate_protocols ALL
add_executable(waylight
${GEN_C_PRIVATES}
${CMAKE_CURRENT_SOURCE_DIR}/src/Config.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/IconRegistry.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Cache.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/InotifyWatcher.cpp
@@ -215,6 +224,7 @@ target_link_libraries(waylight PRIVATE
PkgConfig::FONTCONFIG
PkgConfig::HARFBUZZ
tomlplusplus::tomlplusplus
cpptrace::cpptrace
tinyfiledialogs
mINI