Debian Codegraph @

src/vendor/azure-uamqp-c/samples/mssbcbs_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(mssbcbs_sample
5 main.c)
6
7 compileTargetAsC99(mssbcbs_sample)
8
9 include_directories(.)
10 if (WIN32)
11 #windows needs this define
12 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
13 add_definitions(-DGB_MEASURE_MEMORY_FOR_THIS -DGB_DEBUG_ALLOC)
14
15 if(WINCE)
16 target_link_libraries(mssbcbs_sample
17 uamqp aziotsharedutil secur32)
18 else()
19 target_link_libraries(mssbcbs_sample
20 uamqp aziotsharedutil ws2_32 secur32)
21 endif()
22
23 if(${use_openssl})
24 target_link_libraries(mssbcbs_sample
25 $ENV{OpenSSLDir}/lib/ssleay32.lib $ENV{OpenSSLDir}/lib/libeay32.lib)
26
27 file(COPY $ENV{OpenSSLDir}/bin/libeay32.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug)
28 file(COPY $ENV{OpenSSLDir}/bin/ssleay32.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug)
29 endif()
30 if(${use_wolfssl})
31 target_link_libraries(mssbcbs_sample $ENV{WolfSSLDir}/Debug/wolfssl.lib)
32 endif()
33 else()
34 target_link_libraries(mssbcbs_sample uamqp aziotsharedutil ${OPENSSL_LIBRARIES})
35 endif()