add_library(${POLKITQT-1_AGENT_PCNAME} SHARED) add_library(${POLKITQT-1_CAMEL_NAME}::Agent ALIAS ${POLKITQT-1_AGENT_PCNAME}) target_sources(${POLKITQT-1_AGENT_PCNAME} PRIVATE polkitqt1-agent-session.cpp polkitqt1-agent-listener.cpp listeneradapter.cpp polkitqtlistener.cpp ) generate_export_header(${POLKITQT-1_AGENT_PCNAME} BASE_NAME polkitqt1-agent EXPORT_FILE_NAME polkitqt1-agent-export.h ) target_link_libraries(${POLKITQT-1_AGENT_PCNAME} PUBLIC Qt${QT_MAJOR_VERSION}::Core ${POLKITQT-1_CORE_PCNAME} PRIVATE Qt${QT_MAJOR_VERSION}::Core PkgConfig::POLKIT_AGENT PkgConfig::GOBJECT ) set_target_properties(${POLKITQT-1_AGENT_PCNAME} PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION} SOVERSION ${POLKITQT-1_ABI_VERSION} DEFINE_SYMBOL MAKE_POLKITQT1_LIB EXPORT_NAME Agent) target_include_directories(${POLKITQT-1_AGENT_PCNAME} INTERFACE $ $ $ ) install(TARGETS ${POLKITQT-1_AGENT_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION bin)