From 0862964c82c0c398c9f6ed3e6f867b6325aa64c0 Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Tue, 7 Sep 2021 07:20:06 +0200 Subject: [PATCH] Add cmake project for LUFA MMU-80 --- lib/AddLufa.cmake | 11 +++++++++++ lib/CMakeLists.txt | 1 + 2 files changed, 12 insertions(+) create mode 100644 lib/AddLufa.cmake 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)