add_library(
	Turbine
		event.cpp
)

if(TURBINE_BUILD_TYPE STREQUAL "GBA")
	add_subdirectory(gba)
else()
	add_subdirectory(glfw)
endif()

if(NOT MSVC)
	target_compile_options(Turbine PRIVATE -Wsign-conversion)
endif()

target_link_libraries(
	Turbine PUBLIC
		Keel
)

install(
	FILES
		clipboard.hpp
		config.hpp
		context.hpp
		event.hpp
		gfx.hpp
		input.hpp
		turbine.hpp
	DESTINATION
		include/turbine
)

install(
	TARGETS
		Turbine
	DESTINATION
		LIBRARY DESTINATION lib
		ARCHIVE DESTINATION lib
)
