• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PROJECT(mqtt-tests)
2
3SET(MQTT_TEST_BROKER_HOST "localhost" CACHE STRING "Hostname of a test MQTT broker to use")
4SET(MQTT_TEST_PROXY_PORT "1884" CACHE STRING "Port of the test proxy to use")
5SET(MQTT_SSL_HOSTNAME "localhost" CACHE STRING "Hostname of a test SSL MQTT broker to use")
6SET(CERTDIR $ENV{TRAVIS_BUILD_DIR}/test/ssl)
7
8ADD_EXECUTABLE(
9	testc1
10	test1.c
11)
12
13target_link_libraries(testc1 paho-embed-mqtt3cc paho-embed-mqtt3c)
14target_include_directories(testc1 PRIVATE "../src" "../src/linux")
15target_compile_definitions(testc1 PRIVATE MQTTCLIENT_PLATFORM_HEADER=MQTTLinux.h)
16
17ADD_TEST(
18	NAME testc1
19	COMMAND "testc1" "--host" ${MQTT_TEST_BROKER_HOST}
20)
21