Debian Codegraph @

src/vendor/azure-uamqp-c/samples/websockets_sample/CMakeLists.txt

raw
1 #Copyright (c) Microsoft. All rights reserved.
2 #Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 add_executable(websockets_sample
5 main.c
6 iothub_certs.h
7 iothub_certs.c)
8
9 compileTargetAsC99(websockets_sample)
10
11 include_directories(.)
12
13 if(WIN32)
14 #windows needs this define
15 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
16 add_definitions(-DGB_MEASURE_MEMORY_FOR_THIS -DGB_DEBUG_ALLOC)
17
18 if(WINCE)
19 target_link_libraries(websockets_sample
20 uamqp aziotsharedutil secur32)
21 else()
22 target_link_libraries(websockets_sample
23 uamqp aziotsharedutil ws2_32 secur32)
24 endif()
25
26 else()
27 target_link_libraries(websockets_sample uamqp aziotsharedutil)
28 endif()