cmake_minimum_required(VERSION 3.14)
project(RobotCore VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 20
)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include(FetchContent)
find_package(Eigen  REQUIRED COMPONENTS Core)
FetchContent_Declare(
  json
  GIT_REPOSITORY https://github.com/nlohmann/json
  GIT_TAG v3.11.2
)
FetchContent_MakeAvailable(json)

add_library(perception SHARED)
target_sources(perception PRIVATE src/main.cpp)
target_include_directories(perception PUBLIC include)
target_link_libraries(perception PRIVATE Eigen3::Eigen)
