mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
49 lines
2.0 KiB
Diff
49 lines
2.0 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 418e2f2..f05aad4 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -62,9 +62,9 @@ ENDIF()
|
||
|
### packaging settings
|
||
|
SET(CPACK_PACKAGE_VENDOR "Eclipse Paho")
|
||
|
SET(CPACK_PACKAGE_NAME "Eclipse-Paho-MQTT-C")
|
||
|
-INSTALL(FILES CONTRIBUTING.md epl-v10 edl-v10 README.md notice.html DESTINATION .)
|
||
|
+INSTALL(FILES CONTRIBUTING.md epl-v10 edl-v10 README.md notice.html DESTINATION share/paho-mqtt)
|
||
|
FILE(GLOB samples "src/samples/*.c")
|
||
|
-INSTALL(FILES ${samples} DESTINATION samples)
|
||
|
+INSTALL(FILES ${samples} DESTINATION share/paho-mqtt/samples)
|
||
|
IF (WIN32)
|
||
|
SET(CPACK_GENERATOR "ZIP")
|
||
|
ELSEIF(PAHO_BUILD_DEB_PACKAGE)
|
||
|
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
|
||
|
index 06e4c5d..9cf7c21 100644
|
||
|
--- a/doc/CMakeLists.txt
|
||
|
+++ b/doc/CMakeLists.txt
|
||
|
@@ -37,4 +37,4 @@ FOREACH(DOXYFILE_SRC DoxyfileV3ClientAPI;DoxyfileV3AsyncAPI;DoxyfileV3ClientInte
|
||
|
SET(DOXYTARGETS ${DOXYTARGETS} ${DOXYFILE_SRC}.target)
|
||
|
ENDFOREACH(DOXYFILE_SRC)
|
||
|
ADD_CUSTOM_TARGET(doc ALL DEPENDS ${DOXYTARGETS})
|
||
|
-INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc DESTINATION share)
|
||
|
+INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc DESTINATION share/paho-mqtt)
|
||
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||
|
index c57185b..98c7f31 100644
|
||
|
--- a/src/CMakeLists.txt
|
||
|
+++ b/src/CMakeLists.txt
|
||
|
@@ -84,7 +84,7 @@ INSTALL(TARGETS paho-mqtt3c paho-mqtt3a
|
||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||
|
INSTALL(TARGETS MQTTVersion
|
||
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||
|
+ RUNTIME DESTINATION tools/paho-mqtt)
|
||
|
|
||
|
IF (PAHO_BUILD_STATIC)
|
||
|
ADD_LIBRARY(paho-mqtt3c-static STATIC $<TARGET_OBJECTS:common_obj> MQTTClient.c)
|
||
|
@@ -98,7 +98,7 @@ IF (PAHO_BUILD_STATIC)
|
||
|
ENDIF()
|
||
|
|
||
|
INSTALL(FILES MQTTAsync.h MQTTClient.h MQTTClientPersistence.h
|
||
|
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||
|
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/paho-mqtt)
|
||
|
|
||
|
IF (PAHO_WITH_SSL)
|
||
|
SET(OPENSSL_SEARCH_PATH "" CACHE PATH "Directory containing OpenSSL libraries and includes")
|