diff --git a/lib/AddLufa.cmake b/lib/AddLufa.cmake new file mode 100644 index 0000000..52ff12f --- /dev/null +++ b/lib/AddLufa.cmake @@ -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) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 09159f6..13893f0 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,3 +1,4 @@ if(NOT CMAKE_CROSSCOMPILING) add_subdirectory(Catch2) endif() +include(AddLufa.cmake)