core/command: rewrite command parser with CLI11

This commit is contained in:
outfoxxed 2024-08-09 19:22:18 -07:00
parent bdbf5b9af9
commit 291179ede2
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
7 changed files with 185 additions and 129 deletions

View file

@ -1,3 +1,5 @@
find_package(CLI11 CONFIG REQUIRED)
qt_add_library(quickshell-core STATIC
main.cpp
plugin.cpp
@ -44,7 +46,7 @@ qt_add_library(quickshell-core STATIC
set_source_files_properties(main.cpp PROPERTIES COMPILE_DEFINITIONS GIT_REVISION="${GIT_REVISION}")
qt_add_qml_module(quickshell-core URI Quickshell VERSION 0.1)
target_link_libraries(quickshell-core PRIVATE ${QT_DEPS} Qt6::QuickPrivate)
target_link_libraries(quickshell-core PRIVATE ${QT_DEPS} Qt6::QuickPrivate CLI11::CLI11)
qs_pch(quickshell-core)
target_link_libraries(quickshell PRIVATE quickshell-coreplugin)