[nostalgia/core] Add NostalgiaCore-Headless
This commit is contained in:
@@ -46,13 +46,23 @@ else()
|
||||
endif()
|
||||
|
||||
add_library(
|
||||
NostalgiaCore
|
||||
NostalgiaCore
|
||||
gfx.cpp
|
||||
media.cpp
|
||||
typeconv.cpp
|
||||
${NOSTALGIA_CORE_IMPL_SRC}
|
||||
)
|
||||
|
||||
add_library(
|
||||
NostalgiaCore-Headless
|
||||
gfx.cpp
|
||||
media.cpp
|
||||
typeconv.cpp
|
||||
headless/core.cpp
|
||||
headless/gfx.cpp
|
||||
headless/media.cpp
|
||||
)
|
||||
|
||||
if(NOT MSVC)
|
||||
target_compile_options(NostalgiaCore PUBLIC -Wsign-conversion)
|
||||
endif()
|
||||
@@ -64,6 +74,12 @@ target_link_libraries(
|
||||
${NOSTALGIA_CORE_IMPL_LIBS}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
NostalgiaCore-Headless PUBLIC
|
||||
OxClaw
|
||||
OxFS
|
||||
)
|
||||
|
||||
if(NOSTALGIA_BUILD_STUDIO)
|
||||
add_subdirectory(studio)
|
||||
endif()
|
||||
@@ -88,6 +104,7 @@ install(
|
||||
install(
|
||||
TARGETS
|
||||
NostalgiaCore
|
||||
NostalgiaCore-Headless
|
||||
DESTINATION
|
||||
LIBRARY DESTINATION lib/nostalgia
|
||||
ARCHIVE DESTINATION lib/nostalgia
|
||||
|
||||
Reference in New Issue
Block a user