Add cmake project for LUFA

MMU-80
pull/115/head
D.R.racer 2021-09-07 07:20:06 +02:00 committed by Alex Voinea
parent f8ac620379
commit 0862964c82
2 changed files with 12 additions and 0 deletions

11
lib/AddLufa.cmake Normal file
View File

@ -0,0 +1,11 @@
add_library(
LUFA
lufa/LUFA/Common/Drivers/USB/Class/Device/CDCClassDevice.c
lufa/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.c
lufa/LUFA/Drivers/USB/Core/AVR8/USBController_AVR8.c
lufa/LUFA/Drivers/USB/Core/AVR8/USBInterrupt_AVR8.c
lufa/LUFA/Drivers/USB/Core/ConfigDescriptors.c
lufa/LUFA/Drivers/USB/Core/Events.c
)
# target_compile_features(LUFA PUBLIC cxx_std_14)

View File

@ -1,3 +1,4 @@
if(NOT CMAKE_CROSSCOMPILING)
add_subdirectory(Catch2)
endif()
include(AddLufa.cmake)