ADD_LIBRARY(tinycbor STATIC
        tinycbor/cborparser_dup_string.c
        tinycbor/cborencoder.c
        tinycbor/cborencoder_close_container_checked.c
        tinycbor/cborencoder_float.c
        tinycbor/cborparser.c
        tinycbor/cborparser_float.c
        tinycbor/cborpretty.c
        tinycbor/cborerrorstrings.c
        tinycbor/cbor.h
        tinycbor/tinycbor-version.h)

ADD_LIBRARY(CBORStream2FrameSerialize STATIC
        CBORStream2Serializer.cpp CBORStream2Serializer.h
        CBORStream2Deserializer.cpp CBORStream2Deserializer.h
        CborErr.h CborUtil.h JFJochMessages.h)

TARGET_LINK_LIBRARIES(CBORStream2FrameSerialize tinycbor)

ADD_LIBRARY(ImagePusher STATIC
        ImagePusher.cpp ImagePusher.h
        TestImagePusher.cpp TestImagePusher.h
        ZMQStream2Pusher.cpp ZMQStream2Pusher.h
        DumpCBORToFilePusher.cpp
        DumpCBORToFilePusher.h)

TARGET_LINK_LIBRARIES(ImagePusher JFJochZMQ CBORStream2FrameSerialize JFJochCommon Compression)