Support vcpkg for generated project (#757)
* Update CmakeLists.txt to support vcpkg of azure_iot_sdks * Update CmakeLists.txt to support vcpkg of azure_iot_sdks * add rc2 tag
This commit is contained in:
Родитель
798b111ce3
Коммит
c009a586f0
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vscode-iot-workbench",
|
||||
"version": "0.10.15-rc",
|
||||
"version": "0.10.15-rc2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"url": "https://github.com/Microsoft/vscode-iot-workbench/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Microsoft/vscode-iot-workbench/blob/master/README.md",
|
||||
"version": "0.10.15-rc",
|
||||
"version": "0.10.15-rc2",
|
||||
"publisher": "vsciot-vscode",
|
||||
"icon": "logo.png",
|
||||
"license": "SEE LICENSE IN <LICENSE>",
|
||||
|
|
|
@ -18,6 +18,9 @@ endif()
|
|||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
# Uncomment the following line if you want to build with vcpkg of azure_iot_sdks
|
||||
# find_package(azure_iot_sdks REQUIRED)
|
||||
|
||||
set({PROJECT_NAME}_h_files
|
||||
{H_FILE_LIST}
|
||||
)
|
||||
|
@ -36,4 +39,13 @@ include_directories(${DIGITALTWIN_CLIENT_INC_FOLDER})
|
|||
|
||||
add_executable({PROJECT_NAME} ${{PROJECT_NAME}_c_files} ${{PROJECT_NAME}_h_files})
|
||||
|
||||
target_link_libraries({PROJECT_NAME} parson iothub_client_mqtt_transport iothub_client digitaltwin_client)
|
||||
target_link_libraries({PROJECT_NAME}
|
||||
parson
|
||||
iothub_client_mqtt_transport
|
||||
iothub_client_mqtt_ws_transport
|
||||
iothub_client
|
||||
digitaltwin_client
|
||||
prov_auth_client
|
||||
aziotsharedutil
|
||||
umqtt
|
||||
uuid)
|
||||
|
|
|
@ -18,6 +18,9 @@ endif()
|
|||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
# Uncomment the following line if you want to build with vcpkg of azure_iot_sdks
|
||||
# find_package(azure_iot_sdks REQUIRED)
|
||||
|
||||
set({PROJECT_NAME}_h_files
|
||||
{H_FILE_LIST}
|
||||
)
|
||||
|
@ -37,4 +40,15 @@ include_directories(${DEV_AUTH_MODULES_CLIENT_INC_FOLDER})
|
|||
|
||||
add_executable({PROJECT_NAME} ${{PROJECT_NAME}_c_files} ${{PROJECT_NAME}_h_files})
|
||||
|
||||
target_link_libraries({PROJECT_NAME} parson iothub_client_mqtt_transport iothub_client digitaltwin_client prov_device_ll_client prov_mqtt_transport)
|
||||
target_link_libraries({PROJECT_NAME}
|
||||
parson
|
||||
iothub_client_mqtt_transport
|
||||
iothub_client_mqtt_ws_transport
|
||||
prov_device_ll_client
|
||||
prov_mqtt_transport
|
||||
iothub_client
|
||||
digitaltwin_client
|
||||
prov_auth_client
|
||||
aziotsharedutil
|
||||
umqtt
|
||||
uuid)
|
Загрузка…
Ссылка в новой задаче