31 lines
529 B
CMake
31 lines
529 B
CMake
add_library(Turbine-GBA OBJECT)
|
|
target_sources(
|
|
Turbine-GBA PRIVATE
|
|
clipboard.cpp
|
|
gfx.cpp
|
|
irq.arm.cpp
|
|
turbine.arm.cpp
|
|
turbine.cpp
|
|
)
|
|
|
|
if(TURBINE_BUILD_TYPE STREQUAL "GBA")
|
|
enable_language(ASM)
|
|
set_source_files_properties(turbine.arm.cpp irq.arm.cpp PROPERTIES COMPILE_FLAGS -marm)
|
|
target_sources(
|
|
Turbine-GBA PRIVATE
|
|
irq.s
|
|
)
|
|
target_link_libraries(Turbine PUBLIC Turbine-GBA)
|
|
else()
|
|
target_sources(
|
|
Turbine-GBA PRIVATE
|
|
irqstub.cpp
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(
|
|
Turbine-GBA PUBLIC
|
|
TeaGBA
|
|
Keel
|
|
)
|