Add calibration and separate the interface

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-04-02 23:08:28 +02:00
parent a863ff6b9f
commit 2c23021a5e
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
8 changed files with 760 additions and 367 deletions

View file

@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.16)
project(nrealAirLibrary)
set(CMAKE_C_STANDARD 17)
find_package(PkgConfig REQUIRED)
pkg_search_module(LIBUSB1 REQUIRED libusb-1.0)
add_library(
nrealAirLibrary
src/device3.c
src/device4.c
)
target_include_directories(nrealAirLibrary
BEFORE PUBLIC include
)
target_include_directories(nrealAirLibrary
SYSTEM BEFORE PRIVATE ${FUSION_INCLUDE_DIR} ${LIBUSB1_INCLUDE_DIRS}
)
target_link_libraries(nrealAirLibrary
${LIBUSB1_LIBRARIES} ${FUSION_LIBRARY} m
)
set(NRA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include PARENT_SCOPE)
set(NRA_LIBRARY nrealAirLibrary PARENT_SCOPE)