[nostalgia/core] Cleanup CMake config

This commit is contained in:
2019-10-31 00:22:58 -05:00
parent 3a0b41d2cc
commit 73377068c6
8 changed files with 80 additions and 49 deletions

View File

@@ -1,17 +1,12 @@
add_executable(
nostalgia
main.cpp
)
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
enable_language(C ASM)
add_executable(
nostalgia
main.cpp
startup.s
)
set(NOSTALGIA_PLAYER_DEPS "")
set(NOSTALGIA_PLAYER_DEPS "NostalgiaCore-GBA")
else()
add_executable(
nostalgia
main.cpp
)
set(NOSTALGIA_PLAYER_DEPS "NostalgiaCore-SDL")
endif()