From d2f6e26d43bf9d0875f6e52630f0903edac00c23 Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Tue, 26 Mar 2024 23:24:48 -0600 Subject: [PATCH] Add source directory for GBA specific files --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d285132..5ca0af0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ message("Compiling MTL for ${CMAKE_SYSTEM_PROCESSOR}") file(GLOB mtl_sources_common LIST_DIRECTORIES false CONFIGURE_DEPENDS src/*.cpp src/*.c src/*.s) file(GLOB mtl_sources_debug LIST_DIRECTORIES false CONFIGURE_DEPENDS src/debug/*.cpp src/debug/*.c src/debug/*.s) file(GLOB mtl_sources_armv4t LIST_DIRECTORIES false CONFIGURE_DEPENDS src/armv4t/*.cpp src/armv4t/*.c src/armv4t/*.s) +file(GLOB mtl_sources_gba LIST_DIRECTORIES false CONFIGURE_DEPENDS src/gba/*.cpp src/gba/*.c src/gba/*.s) set(mtl_include_common "include") set(mtl_include_debug "include/debug") @@ -30,5 +31,9 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "armv4t") target_sources(${PROJECT_NAME} PRIVATE "${mtl_sources_armv4t}") endif() +if (CMAKE_SYSTEM_NAME STREQUAL "NintendoGBA") + target_sources(${PROJECT_NAME} PRIVATE "${mtl_sources_gba}") +endif() + # TODO: Support installing library