add_library(${POLKITQT-1_GUI_PCNAME} SHARED) add_library(${POLKITQT-1_CAMEL_NAME}::Gui ALIAS ${POLKITQT-1_GUI_PCNAME}) target_sources(${POLKITQT-1_GUI_PCNAME} PRIVATE polkitqt1-gui-action.cpp polkitqt1-gui-actionbutton.cpp polkitqt1-gui-actionbuttons.cpp ) generate_export_header(${POLKITQT-1_CORE_PCNAME} BASE_NAME polkitqt1-gui EXPORT_FILE_NAME polkitqt1-gui-export.h ) target_link_libraries(${POLKITQT-1_GUI_PCNAME} PUBLIC ${POLKITQT-1_CORE_PCNAME} Qt${QT_MAJOR_VERSION}::Widgets PRIVATE Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::DBus ) set_target_properties(${POLKITQT-1_GUI_PCNAME} PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION} SOVERSION ${POLKITQT-1_ABI_VERSION} DEFINE_SYMBOL MAKE_POLKITQT1_LIB EXPORT_NAME Gui) target_include_directories(${POLKITQT-1_GUI_PCNAME} INTERFACE $ $ $ ) install(TARGETS ${POLKITQT-1_GUI_PCNAME} EXPORT ${POLKITQT-1_CAMEL_NAME}Export ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION bin)