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)