cmake_minimum_required(VERSION 3.10)

find_package(PkgConfig REQUIRED)
    pkg_check_modules(libusb REQUIRED libusb-1.0)
    pkg_check_modules(libssl REQUIRED libssl)
file(GLOB cxxfiles *.cpp)
add_library(mtmms SHARED ${cxxfiles} hid.c)
set_target_properties(mtmms PROPERTIES COMPILE_FLAGS -D_USING_HID_API)

target_link_libraries(mtmms ssl crypto dl pthread usb-1.0)
