From bae54a906bef6f6cc96342b677565ab5cb84ebfb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 4 May 2020 18:22:42 -0500 Subject: [PATCH] [nostalgia] Add CMake option to disable engine build --- CMakeLists.txt | 1 + src/nostalgia/CMakeLists.txt | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcbe9d5a..408402ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/src/nostalgia/CMakeLists.txt b/src/nostalgia/CMakeLists.txt index 02b66140..ff199724 100644 --- a/src/nostalgia/CMakeLists.txt +++ b/src/nostalgia/CMakeLists.txt @@ -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)