diff options
Diffstat (limited to 'test/interop/CMakeLists.txt')
| -rw-r--r-- | test/interop/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/interop/CMakeLists.txt b/test/interop/CMakeLists.txt new file mode 100644 index 0000000..f4d71e8 --- /dev/null +++ b/test/interop/CMakeLists.txt @@ -0,0 +1,10 @@ +ADD_LIBRARY(testclient STATIC testclient.c testclient.h) +TARGET_LINK_LIBRARIES(testclient PUBLIC mqtt) + +FUNCTION(ADD_INTEROP_TEST NAME) + ADD_EXECUTABLE(${NAME} ${NAME}.c) + TARGET_LINK_LIBRARIES(${NAME} PRIVATE testclient) + ADD_TEST(NAME ${NAME} COMMAND ${NAME}) +ENDFUNCTION() + +ADD_INTEROP_TEST(basic_test) |
