cmake_minimum_required(VERSION 3.16) project(IntellegentGate) set(CMAKE_CXX_STANDARD 17) include_directories(inc) link_directories(lib) find_package(CURL REQUIRED) add_executable(IntellegentGate main.cpp inc/http.cpp inc/utils.cpp inc/manager.cpp inc/device.cpp inc/items.cpp inc/json/parser.cpp inc/json/value.cpp ) target_link_libraries(IntellegentGate dhnetsdk curl -lpthread -lm)