This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nrealAirLinuxDriver/interface_lib/CMakeLists.txt
TheJackiMonster 678c0196ea
Load calibration from device via payload
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-04-23 02:10:55 +02:00

31 lines
684 B
CMake

cmake_minimum_required(VERSION 3.16)
project(nrealAirLibrary C)
set(CMAKE_C_STANDARD 17)
find_package(PkgConfig REQUIRED)
pkg_search_module(LIBUSB1 REQUIRED libusb-1.0)
find_package(json-c REQUIRED)
add_library(
nrealAirLibrary
src/crc32.c
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} json-c::json-c ${FUSION_LIBRARY} m
)
set(NRA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(NRA_LIBRARY nrealAirLibrary PARENT_SCOPE)