
#setup libraries

if(NOSTALGIA_BUILD_STUDIO)
	find_package(Qt5Widgets)
	set(CMAKE_AUTOMOC ON)
endif()

if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
	find_package(SDL2 REQUIRED)
endif()

#project packages

add_subdirectory(core)
add_subdirectory(common)
add_subdirectory(player)
add_subdirectory(world)

if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
	add_subdirectory(tools)
endif()

if(NOSTALGIA_BUILD_STUDIO)
	add_subdirectory(studio)
endif()


#setup libraries

if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
	find_package(SDL2 REQUIRED)
	if(NOSTALGIA_BUILD_STUDIO)
		find_package(Qt5Widgets REQUIRED)
		find_package(Qt5QuickWidgets REQUIRED)
		set(CMAKE_AUTOMOC ON)
		set(CMAKE_AUTORCC ON)
	endif()
endif()

#project packages

add_subdirectory(core)
add_subdirectory(common)
add_subdirectory(player)
add_subdirectory(world)

if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
	add_subdirectory(tools)
	if(NOSTALGIA_BUILD_STUDIO)
		add_subdirectory(studio)
	endif()
endif()

Add Qt Quick as dependency
[nostalgia] Add Qt Quick as dependency
