Archived
1
Fork 0

Add actual options for disabling compilation of the example and tooling

This commit is contained in:
Joshua Goins 2022-03-06 19:13:14 -05:00
parent 926b97db10
commit 570df75a55
2 changed files with 11 additions and 4 deletions

View file

@ -10,6 +10,10 @@ include(${CMAKE_CURRENT_LIST_DIR}/cmake/Common.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/AddPlatformExecutable.cmake)
include(FetchContent)
# options
option(BUILD_TOOLS "Build tools for curating content for Prism" OFF)
option(BUILD_EXAMPLE "Build example program" ON)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
message("Linux build detected!")
@ -53,7 +57,7 @@ endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "tvOS")
message("tvOS build detected!")
#set(ENABLE_VULKAN TRUE)
set(ENABLE_VULKAN TRUE)
set(ENABLE_DARWIN TRUE)
set(ENABLE_TVOS TRUE)
set(ENABLE_METAL TRUE)
@ -119,4 +123,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_subdirectory(engine)
add_subdirectory(tools)
if(BUILD_EXAMPLE)
add_subdirectory(example)
endif()

View file

@ -1,6 +1,6 @@
set(CMAKE_FOLDER "Tools")
if(NOT IOS AND NOT ENABLE_TVOS)
if(NOT NEEDS_HOSTED_SHADER_COMPILER)
add_subdirectory(shadercompiler)
endif()