Add source directory for GBA specific files

This commit is contained in:
Myles Busig 2024-03-26 23:24:48 -06:00
parent e5b0e242e8
commit eb21945c81

View File

@ -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