#Copyright (c) Microsoft. All rights reserved. #Licensed under the MIT license. See LICENSE file in the project root for full license information. set(utpm_sample_c_files utpm_sample.c ) set(utpm_sample_h_files ) IF(WIN32) #windows needs this define add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-DGB_MEASURE_MEMORY_FOR_THIS -DGB_DEBUG_ALLOC) ENDIF(WIN32) include_directories(.) include_directories(${DEV_AUTH_MODULES_CLIENT_INC_FOLDER}) include_directories(${SHARED_UTIL_INC_FOLDER}) add_executable(utpm_sample ${utpm_sample_c_files} ${utpm_sample_h_files}) compileTargetAsC99(utpm_sample) if(${use_openssl}) if (WIN32) target_link_libraries(utpm_sample $ENV{OpenSSLDir}/lib/ssleay32.lib $ENV{OpenSSLDir}/lib/libeay32.lib) file(COPY $ENV{OpenSSLDir}/bin/libeay32.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug) file(COPY $ENV{OpenSSLDir}/bin/ssleay32.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug) endif() endif() target_link_libraries(utpm_sample utpm)