add_library(
	NostalgiaCore-SDL
		core.cpp
		gfx.cpp
)

find_package(SDL2 REQUIRED)

target_link_libraries(
	NostalgiaCore-SDL PUBLIC
		SDL2::SDL2main
		SDL2::SDL2-static
		OxClaw
		OxFS
		OxStd
		NostalgiaCore-Userspace
)

install(
	TARGETS
		NostalgiaCore-SDL
	DESTINATION
		LIBRARY DESTINATION lib/nostalgia
		ARCHIVE DESTINATION lib/nostalgia
)
