Add source directory for GBA specific files
This commit is contained in:
parent
ec934592bc
commit
d2f6e26d43
@ -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_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_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_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_common "include")
|
||||||
set(mtl_include_debug "include/debug")
|
set(mtl_include_debug "include/debug")
|
||||||
@ -30,5 +31,9 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "armv4t")
|
|||||||
target_sources(${PROJECT_NAME} PRIVATE "${mtl_sources_armv4t}")
|
target_sources(${PROJECT_NAME} PRIVATE "${mtl_sources_armv4t}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_SYSTEM_NAME STREQUAL "NintendoGBA")
|
||||||
|
target_sources(${PROJECT_NAME} PRIVATE "${mtl_sources_gba}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# TODO: Support installing library
|
# TODO: Support installing library
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user