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 72feaa60b3
Switch from libusb to hidapi
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-04-30 12:59:34 +02:00

29 lines
603 B
CMake

cmake_minimum_required(VERSION 3.16)
project(nrealAirLibrary C)
set(CMAKE_C_STANDARD 17)
find_package(hidapi REQUIRED)
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}
)
target_link_libraries(nrealAirLibrary
hidapi::hidapi json-c::json-c ${FUSION_LIBRARY} m
)
set(NRA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(NRA_LIBRARY nrealAirLibrary PARENT_SCOPE)