#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 longhaul_mqtt_device_methods compileAsC99() set(PROJECT_NAME "longhaul_mqtt_device_methods") if(NOT ${use_mqtt}) message(FATAL_ERROR "longhaul_mqtt_device_methods being generated without umqtt support") endif() set(project_c_files ${PROJECT_NAME}.c ) set(project_h_files ${PROJECT_NAME}.h ) includeMqtt() file(COPY ../global_valgrind_suppression.supp DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) build_c_test_longhaul_test(${PROJECT_NAME} ${project_c_files} ${project_h_files} VALGRIND_SUPPRESSIONS_FILE global_valgrind_suppression.supp) linkSharedUtil(${PROJECT_NAME}) linkMqttLibrary(${PROJECT_NAME})