add_library(
	NostalgiaGfx-GBA OBJECT
		context.cpp
		gfx.cpp
		panic.cpp
)
target_include_directories(
	NostalgiaGfx-GBA PUBLIC
		../../include
)
target_link_libraries(
	NostalgiaGfx-GBA PUBLIC
		TeaGBA
		Keel
		Turbine
)

if(BUILDCORE_TARGET STREQUAL "gba")
	set_source_files_properties(gfx.cpp PROPERTIES COMPILE_FLAGS -marm)
	target_link_libraries(NostalgiaGfx PUBLIC NostalgiaGfx-GBA)
endif()
