File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ set(BUILD_SHARED_LIBS ON)
1717set (CMAKE_INSTALL_RPATH_USE_LINK_PATH ON )
1818include (GNUInstallDirs)
1919
20- set (QPACKAGEKIT_API_LEVEL "1 " )
20+ set (QPACKAGEKIT_ABI_LEVEL "2 " )
2121
2222
2323find_package (Qt6 6.8 REQUIRED COMPONENTS Core DBus)
Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ set_source_files_properties(${PK_TRANSACTION_INTERFACE_XML} PROPERTIES NO_NAMESP
4545qt6_add_dbus_interface(packagekitqt_SRC ${PK_INTERFACE_XML} daemonproxy)
4646qt6_add_dbus_interface(packagekitqt_SRC ${PK_TRANSACTION_INTERFACE_XML} transactionproxy)
4747
48- add_library (packagekitqt ${packagekitqt_SRC} ${packagekitqt_HEADERS} ${packagekitqt_HEADERS_PRIVATE} )
49- set_target_properties (packagekitqt PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${QPACKAGEKIT_API_LEVEL } )
48+ add_library (packagekitqt6 ${packagekitqt_SRC} ${packagekitqt_HEADERS} ${packagekitqt_HEADERS_PRIVATE} )
49+ set_target_properties (packagekitqt6 PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${QPACKAGEKIT_ABI_LEVEL } )
5050
51- target_link_libraries (packagekitqt PUBLIC Qt6::DBus)
51+ target_link_libraries (packagekitqt6 PUBLIC Qt6::DBus)
5252
5353configure_file (${CMAKE_CURRENT_SOURCE_DIR} /packagekitqt.pc.in
5454 ${CMAKE_CURRENT_BINARY_DIR} /packagekitqt6.pc
5555 @ONLY
5656)
57- target_include_directories (packagekitqt INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} /PackageKitQt/PackageKit/;${CMAKE_INSTALL_INCLUDEDIR} /PackageKitQt>" )
58- install (TARGETS packagekitqt EXPORT PackageKitQtTargets DESTINATION ${CMAKE_INSTALL_LIBDIR} )
57+ target_include_directories (packagekitqt6 INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} /PackageKitQt/PackageKit/;${CMAKE_INSTALL_INCLUDEDIR} /PackageKitQt>" )
58+ install (TARGETS packagekitqt6 EXPORT PackageKitQtTargets DESTINATION ${CMAKE_INSTALL_LIBDIR} )
5959install (FILES ${CMAKE_CURRENT_BINARY_DIR} /packagekitqt6.pc
6060 DESTINATION ${CMAKE_INSTALL_LIBDIR} /pkgconfig
6161)
Original file line number Diff line number Diff line change 22
33check_required_components(Qt@QT_VERSION_MAJOR@DBus)
44
5- SET (PackageKitQt@QT_VERSION_MAJOR@_LIBRARIES "PK::packagekitqt " )
5+ SET (PackageKitQt@QT_VERSION_MAJOR@_LIBRARIES "PK::packagekitqt6 " )
66
77include ("${CMAKE_CURRENT_LIST_DIR} /PackageKitQtTargets.cmake" )
8-
9- add_library (PK::packagekitqt6 ALIAS PK::packagekitqt)
You can’t perform that action at this time.
0 commit comments