diff --git a/CMakeLists.txt b/CMakeLists.txt index 34a3ea7..e5c8704 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.13) +enable_language(ASM) project(SIMMProgrammer) # Create a list of all source files common to all architectures @@ -26,6 +27,8 @@ set(SOURCES # Get hardware-specific source files if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "avr") include(hal/at90usb646/at90usb646_sources.cmake) +elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm") + include(hal/m258ke/m258ke_sources.cmake) else() message(FATAL_ERROR "unrecognized architecture for build") endif() @@ -47,4 +50,6 @@ target_link_options(SIMMProgrammer.elf PRIVATE # Get hardware-specific options if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "avr") include(hal/at90usb646/at90usb646_options.cmake) +elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm") + include(hal/m258ke/m258ke_options.cmake) endif()