[nostalgia] Add CMake option to disable engine build

This commit is contained in:
Gary Talent 2020-05-04 18:22:42 -05:00
parent b0f268f371
commit bae54a906b
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@ project(nostalgia)
set(NOSTALGIA_BUILD_TYPE "Native" CACHE STRING "The type of build to produce(Native/GBA)")
set(NOSTALGIA_IDE_BUILD ON CACHE STRING "Build for IDE's to run")
set(NOSTALGIA_QT_PATH "" CACHE STRING "Path to Qt Libraries")
set(NOSTALGIA_BUILD_PLAYER ON CACHE BOOL "Build Player")
set(NOSTALGIA_BUILD_STUDIO ON CACHE BOOL "Build Studio")
if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")

View File

@ -15,9 +15,12 @@ endif()
add_subdirectory(core)
add_subdirectory(common)
add_subdirectory(player)
add_subdirectory(world)
if(NOSTALGIA_BUILD_PLAYER)
add_subdirectory(player)
endif()
if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
add_subdirectory(tools)
if(NOSTALGIA_BUILD_STUDIO)