forked from quickshell/quickshell
Further inspection as to what libraries actually require which others will be required before this can be used as a hint for shared builds.
18 lines
536 B
CMake
18 lines
536 B
CMake
qt_add_library(quickshell-crash STATIC
|
|
main.cpp
|
|
interface.cpp
|
|
handler.cpp
|
|
)
|
|
|
|
qs_pch(quickshell-crash SET large)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(breakpad REQUIRED IMPORTED_TARGET breakpad)
|
|
# only need client?? take only includes from pkg config todo
|
|
target_link_libraries(quickshell-crash PRIVATE PkgConfig::breakpad -lbreakpad_client)
|
|
|
|
# quick linked for pch compat
|
|
target_link_libraries(quickshell-crash PRIVATE quickshell-build Qt::Quick Qt::Widgets)
|
|
|
|
target_link_libraries(quickshell PRIVATE quickshell-crash)
|