build: plugins/, passwordStorageEngines/wrappers/ as shared libs

This commit is contained in:
vae 2021-05-12 02:01:02 +03:00
parent a184ecafa3
commit 8e99cc2969
Signed by untrusted user: vae
GPG Key ID: A9A33351400E00E5
3 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,9 @@
if (WITH_KWALLET)
target_sources(squawk PRIVATE
wrappers/kwallet.cpp
kwallet.cpp
kwallet.h
)
target_link_libraries(squawk PRIVATE KF5::Wallet)
add_subdirectory(wrappers)
target_include_directories(squawk PRIVATE $<TARGET_PROPERTY:KF5::Wallet,INTERFACE_INCLUDE_DIRECTORIES>)
endif ()

View File

@ -0,0 +1,2 @@
add_library(kwalletWrapper SHARED kwallet.cpp)
target_link_libraries(kwalletWrapper PRIVATE KF5::Wallet)

View File

@ -1,4 +1,4 @@
if (WITH_KIO)
target_sources(squawk PRIVATE openfilemanagerwindowjob.cpp)
target_link_libraries(squawk PRIVATE KF5::KIOWidgets)
add_library(openFileManagerWindowJob SHARED openfilemanagerwindowjob.cpp)
target_link_libraries(openFileManagerWindowJob PRIVATE KF5::KIOWidgets)
endif ()