|
@@ -104,37 +104,37 @@ target_link_libraries(${TARGET} PUBLIC Qt5::Core Qt5::Qml)
|
|
|
add_library(${QT_PROTOBUF_PROJECT}::${TARGET} ALIAS ${TARGET})
|
|
|
|
|
|
install(TARGETS ${TARGET}
|
|
|
- EXPORT ${TARGET_EXPORT}
|
|
|
- ARCHIVE DESTINATION ${TARGET_LIB_DIR}
|
|
|
- PUBLIC_HEADER DESTINATION ${TARGET_INCLUDE_DIR}
|
|
|
- LIBRARY DESTINATION ${TARGET_LIB_DIR}
|
|
|
- RUNTIME DESTINATION ${TARGET_BINDIR})
|
|
|
+ EXPORT ${TARGET_EXPORT} COMPONENT dev
|
|
|
+ ARCHIVE DESTINATION ${TARGET_LIB_DIR} COMPONENT lib
|
|
|
+ PUBLIC_HEADER DESTINATION ${TARGET_INCLUDE_DIR} COMPONENT dev
|
|
|
+ LIBRARY DESTINATION ${TARGET_LIB_DIR} COMPONENT lib
|
|
|
+ RUNTIME DESTINATION ${TARGET_BINDIR} COMPONENT lib)
|
|
|
|
|
|
-install(EXPORT ${TARGET_EXPORT} NAMESPACE ${QT_PROTOBUF_PROJECT}:: FILE ${TARGET_EXPORT}.cmake DESTINATION ${TARGET_CMAKE_DIR})
|
|
|
+install(EXPORT ${TARGET_EXPORT} NAMESPACE ${QT_PROTOBUF_PROJECT}:: FILE ${TARGET_EXPORT}.cmake DESTINATION ${TARGET_CMAKE_DIR} COMPONENT dev)
|
|
|
|
|
|
include(CMakePackageConfigHelpers)
|
|
|
configure_package_config_file(
|
|
|
"${TARGET_CONFIG}.cmake.in" "${QT_PROTOBUF_BINARY_DIR}/${TARGET_CONFIG}.cmake"
|
|
|
INSTALL_DESTINATION "${TARGET_CMAKE_DIR}")
|
|
|
|
|
|
-install(FILES "${QT_PROTOBUF_BINARY_DIR}/${TARGET_CONFIG}.cmake" DESTINATION "${TARGET_CMAKE_DIR}")
|
|
|
+install(FILES "${QT_PROTOBUF_BINARY_DIR}/${TARGET_CONFIG}.cmake" DESTINATION "${TARGET_CMAKE_DIR}" COMPONENT dev)
|
|
|
|
|
|
export(TARGETS ${TARGET} NAMESPACE ${QT_PROTOBUF_PROJECT}:: FILE ${TARGET_EXPORT}.cmake)
|
|
|
|
|
|
configure_file("${QT_PROTOBUF_CMAKE_DIR}/QtProtobufGen.cmake" "${QT_PROTOBUF_BINARY_DIR}/QtProtobufGen.cmake" COPYONLY)
|
|
|
-install(FILES "${QT_PROTOBUF_BINARY_DIR}/QtProtobufGen.cmake" DESTINATION "${TARGET_CMAKE_DIR}")
|
|
|
+install(FILES "${QT_PROTOBUF_BINARY_DIR}/QtProtobufGen.cmake" DESTINATION "${TARGET_CMAKE_DIR}" COMPONENT dev)
|
|
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/parsemessages.go" "${QT_PROTOBUF_BINARY_DIR}/parsemessages.go" COPYONLY)
|
|
|
-install(FILES "${QT_PROTOBUF_BINARY_DIR}/parsemessages.go" DESTINATION "${TARGET_CMAKE_DIR}")
|
|
|
+install(FILES "${QT_PROTOBUF_BINARY_DIR}/parsemessages.go" DESTINATION "${TARGET_CMAKE_DIR}" COMPONENT dev)
|
|
|
|
|
|
configure_file("${QT_PROTOBUF_CMAKE_DIR}/ProtobufLookup.cmake" "${QT_PROTOBUF_BINARY_DIR}/ProtobufLookup.cmake" COPYONLY)
|
|
|
-install(FILES "${QT_PROTOBUF_BINARY_DIR}/ProtobufLookup.cmake" DESTINATION "${TARGET_CMAKE_DIR}")
|
|
|
+install(FILES "${QT_PROTOBUF_BINARY_DIR}/ProtobufLookup.cmake" DESTINATION "${TARGET_CMAKE_DIR}" COMPONENT dev)
|
|
|
|
|
|
if(QT_PROTOBUF_STATIC) #extra config for .pri file in case if static build enabled
|
|
|
set(QT_PROTOBUF_EXTRA_CONFIG "staticlib")
|
|
|
endif()
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/qt_lib_protobuf.pri.in" "${QT_PROTOBUF_BINARY_DIR}/qt_lib_protobuf.pri" @ONLY)
|
|
|
-install(FILES "${QT_PROTOBUF_BINARY_DIR}/qt_lib_protobuf.pri" DESTINATION "${QT_HOST_DATA}/mkspecs/modules")
|
|
|
+install(FILES "${QT_PROTOBUF_BINARY_DIR}/qt_lib_protobuf.pri" DESTINATION "${QT_HOST_DATA}/mkspecs/modules" COMPONENT dev)
|
|
|
|
|
|
add_subdirectory("quick")
|
|
|
|