#**************************************************************************** #* Copyright (c) 2023 Open Systems Development B.V. #***************************************************************************** # # Don't call this file directly from cmake. # This file is included from the upper directory. # # Build rules for the MQTT Library add_executable(mqtt_test helperclasses/PublisherClass.h TopicLengthTest.cpp SledgeHammerTest.cpp ) target_include_directories(mqtt_test PRIVATE ${CMAKE_CIRRENT_SOURECE_DIR} ../include ) target_link_libraries(mqtt_test PRIVATE gmock_main gmock gtest mqtt-cpp ) add_test(NAME mqtt_test COMMAND mqtt_test) set_tests_properties(mqtt_test PROPERTIES WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" )