[nostalgia/core] Cleanup CMake config
This commit is contained in:
@@ -1,35 +1,5 @@
|
||||
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
||||
enable_language(C ASM)
|
||||
set(
|
||||
CPP
|
||||
gba/core.cpp
|
||||
gba/gfx.cpp
|
||||
gba/media.cpp
|
||||
gba/mem.cpp
|
||||
gba/panic.cpp
|
||||
)
|
||||
elseif(NOSTALGIA_BUILD_STUDIO)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
set(
|
||||
CPP
|
||||
#qt/gfx.cpp
|
||||
userland/media.cpp
|
||||
userland/mem.cpp
|
||||
)
|
||||
else()
|
||||
set(
|
||||
CPP
|
||||
#qt/gfx.cpp # does not currently use any Qt stuff, but will need to replace with SDL version
|
||||
userland/media.cpp
|
||||
userland/mem.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
add_library(
|
||||
NostalgiaCore
|
||||
${CPP}
|
||||
core.cpp
|
||||
)
|
||||
|
||||
@@ -39,8 +9,11 @@ target_link_libraries(
|
||||
OxFS
|
||||
)
|
||||
|
||||
if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
|
||||
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
|
||||
add_subdirectory(gba)
|
||||
elseif(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
|
||||
add_subdirectory(sdl)
|
||||
add_subdirectory(userland)
|
||||
endif()
|
||||
if(NOSTALGIA_BUILD_STUDIO)
|
||||
add_subdirectory(studio)
|
||||
@@ -49,10 +22,12 @@ endif()
|
||||
install(
|
||||
FILES
|
||||
consts.hpp
|
||||
context.hpp
|
||||
core.hpp
|
||||
gfx.hpp
|
||||
media.hpp
|
||||
gba/gba.hpp
|
||||
mem.hpp
|
||||
types.hpp
|
||||
DESTINATION
|
||||
include/nostalgia/core
|
||||
)
|
||||
|
Reference in New Issue
Block a user