forked from Azure/azure-iot-sdk-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (26 loc) · 1.18 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
#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 serializer samples. There's nothing here, except redirections to
#individual samples
usePermissiveRulesForSdkSamplesAndTests()
function(add_sample_directory whatIsBuilding)
add_subdirectory(${whatIsBuilding})
set_target_properties(${whatIsBuilding}
PROPERTIES
FOLDER "Serializer_Samples")
endfunction()
if(${use_amqp} AND (NOT DEFINED use_amqp_kit OR NOT ${use_amqp_kit}))
add_sample_directory(remote_monitoring)
add_sample_directory(simplesample_amqp)
endif()
if(${use_http} AND (NOT DEFINED use_http_kit OR NOT ${use_http_kit}))
add_sample_directory(simplesample_http)
add_sample_directory(temp_sensor_anomaly)
endif()
if(${use_mqtt} AND (NOT DEFINED use_mqtt_kit OR NOT ${use_mqtt_kit}))
add_sample_directory(simplesample_mqtt)
add_sample_directory(devicemethod_simplesample)
endif()
if((${use_mqtt} AND (NOT DEFINED use_mqtt_kit OR NOT ${use_mqtt_kit})) AND (${use_amqp} AND (NOT DEFINED use_amqp_kit OR NOT ${use_amqp_kit})))
add_sample_directory(devicetwin_simplesample)
endif()