[nostalgia,olympic] Cleanup CMake

This commit is contained in:
2023-12-23 12:23:47 -06:00
parent 978f2f9c4f
commit 2dba592a42
15 changed files with 64 additions and 51 deletions
+12 -3
View File
@@ -1,6 +1,15 @@
project(nostalgia CXX)
#project packages
set(NOSTALGIA_BUILD_PLAYER ON CACHE BOOL "Build Player")
set(NOSTALGIA_BUILD_STUDIO ON CACHE BOOL "Build Studio")
if(BUILDCORE_TARGET STREQUAL "gba")
set(NOSTALGIA_BUILD_STUDIO OFF)
endif()
if(APPLE)
set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Library/nostalgia")
set(NOSTALGIA_DIST_BIN NostalgiaStudio.app/Contents/MacOS)
@@ -17,13 +26,13 @@ endif()
add_subdirectory(modules)
if(NOSTALGIA_BUILD_PLAYER)
if(${NOSTALGIA_BUILD_PLAYER})
add_subdirectory(player)
endif()
if(TURBINE_BUILD_TYPE STREQUAL "Native")
if(NOT BUILDCORE_TARGET STREQUAL "gba")
add_subdirectory(tools)
if(NOSTALGIA_BUILD_STUDIO)
if(${NOSTALGIA_BUILD_STUDIO})
add_subdirectory(studio)
endif()
endif()