forked from Azure/azure-iot-sdk-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (39 loc) · 1.55 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.
#this is CMakeLists.txt for samples. There's noithig here, except redirections to
#individual protocol samples
usePermissiveRulesForSdkSamplesAndTests()
function(add_sample_directory whatIsBuilding)
add_subdirectory(${whatIsBuilding})
set_target_properties(${whatIsBuilding}
PROPERTIES
FOLDER "IoTHub_Samples")
endfunction()
add_sample_directory(iothub_ll_c2d_sample)
add_sample_directory(iothub_ll_telemetry_sample)
if(${use_http})
add_sample_directory(iothub_client_sample_http_shared)
if(NOT ${dont_use_uploadtoblob})
add_sample_directory(iothub_client_sample_upload_to_blob)
add_sample_directory(iothub_client_sample_upload_to_blob_mb)
endif()
endif()
if(${use_mqtt})
add_sample_directory(iothub_client_sample_mqtt_esp8266)
if(${use_amqp})
add_sample_directory(iothub_client_sample_device_method)
endif()
if(LINUX)
add_sample_directory(iothub_client_sample_mqtt_dm)
endif()
endif()
if(${use_amqp})
add_sample_directory(iothub_client_sample_amqp_shared)
add_sample_directory(iothub_ll_client_sample_amqp_shared)
add_sample_directory(iothub_client_sample_amqp_websockets_shared)
add_sample_directory(iothub_client_sample_amqp_shared_ws_methods)
endif()
if(${use_amqp} OR ${use_mqtt})
add_sample_directory(iothub_client_sample_device_twin)
endif()
add_sample_directory(iothub_client_sample_x509)