find_package(CURL REQUIRED)
find_package(nlohmann_json 3.2 REQUIRED)

add_library(openpu_core STATIC
  vin.cpp
  models.cpp
  http.cpp
  curl_transport.cpp
  api_client.cpp
)
target_include_directories(openpu_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(openpu_core
  PUBLIC CURL::libcurl
  PRIVATE nlohmann_json::nlohmann_json openpu_warnings)
target_compile_definitions(openpu_core PRIVATE OPENPU_VERSION="${PROJECT_VERSION}")
