if(OPENSSL_FOUND) include_directories(${OPENSSL_INCLUDE_DIR}) add_definitions(-DHAVE_OPENSSL) endif() add_definitions(-DKDE_DEFAULT_DEBUG_AREA=51004) set(kpasswdstore_LIB_SRCS kpasswdstore.cpp ) add_library(kpasswdstore ${LIBRARY_TYPE} ${kpasswdstore_LIB_SRCS}) target_link_libraries(kpasswdstore PUBLIC ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ) if(OPENSSL_FOUND) target_link_libraries(kpasswdstore PRIVATE ${OPENSSL_LIBRARIES}) endif() 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} COMPONENT Devel ) install( TARGETS kpasswdstore EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) if(ENABLE_TESTING) add_subdirectory(tests) endif()