Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/samples/socketio_connect/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 set(socketio_connect_c_files
5 main.c
6 )
7
8 IF(WIN32)
9 #windows needs this define
10 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
11 add_definitions(-DGB_MEASURE_MEMORY_FOR_THIS -DGB_DEBUG_ALLOC)
12 ENDIF(WIN32)
13
14 add_executable(socketio_connect ${socketio_connect_c_files})
15
16 target_link_libraries(socketio_connect
17 aziotsharedutil
18 )
19
20 if(${use_openssl} AND WIN32)
21 file(COPY ${SSL_DLL} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
22 file(COPY ${CRYPTO_DLL} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
23 endif()
24
25 set_target_properties(socketio_connect
26 PROPERTIES
27 FOLDER "azure_c_shared_utility_samples")
28
29 compileTargetAsC99(socketio_connect)