2022-04-04 19:44:39 +03:00
|
|
|
if(OPENSSL_FOUND)
|
|
|
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
2022-04-06 06:42:21 +03:00
|
|
|
# for the kded module
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2022-04-04 19:44:39 +03:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=51004)
|
|
|
|
|
|
|
|
set(kpasswdstore_LIB_SRCS
|
|
|
|
kpasswdstore.cpp
|
|
|
|
)
|
|
|
|
|
2023-06-10 23:05:53 +03:00
|
|
|
add_library(kpasswdstore SHARED ${kpasswdstore_LIB_SRCS})
|
2022-04-04 19:44:39 +03:00
|
|
|
|
|
|
|
target_link_libraries(kpasswdstore PUBLIC
|
2022-04-06 06:42:21 +03:00
|
|
|
${QT_QTDBUS_LIBRARY}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
|
|
|
kdeui
|
2022-04-04 19:44:39 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(kpasswdstore PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
|
|
|
|
|
|
|
generate_export_header(kpasswdstore)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kpasswdstore_export.h
|
|
|
|
kpasswdstore.h
|
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kpasswdstore
|
2023-06-17 23:57:38 +03:00
|
|
|
EXPORT kdelibsTargets
|
2023-06-17 09:11:52 +03:00
|
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}
|
2022-04-04 19:44:39 +03:00
|
|
|
)
|
|
|
|
|
2022-04-06 06:42:21 +03:00
|
|
|
add_subdirectory(kded)
|