28 lines
579 B
CMake
28 lines
579 B
CMake
|
|
#setup libraries
|
|
|
|
if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
|
|
if(NOSTALGIA_BUILD_STUDIO)
|
|
find_package(QT NAMES Qt6 Qt5 COMPONENTS QuickWidgets Widgets REQUIRED)
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS QuickWidgets Widgets REQUIRED)
|
|
endif()
|
|
endif()
|
|
|
|
#project packages
|
|
|
|
add_subdirectory(core)
|
|
add_subdirectory(common)
|
|
add_subdirectory(scene)
|
|
add_subdirectory(world)
|
|
|
|
if(NOSTALGIA_BUILD_PLAYER)
|
|
add_subdirectory(player)
|
|
endif()
|
|
|
|
if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
|
|
add_subdirectory(tools)
|
|
if(NOSTALGIA_BUILD_STUDIO)
|
|
add_subdirectory(studio)
|
|
endif()
|
|
endif()
|