Add actual options for disabling compilation of the example and tooling
This commit is contained in:
parent
926b97db10
commit
570df75a55
2 changed files with 11 additions and 4 deletions
|
@ -10,6 +10,10 @@ include(${CMAKE_CURRENT_LIST_DIR}/cmake/Common.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/cmake/AddPlatformExecutable.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/AddPlatformExecutable.cmake)
|
||||||
include(FetchContent)
|
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")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
message("Linux build detected!")
|
message("Linux build detected!")
|
||||||
|
|
||||||
|
@ -53,7 +57,7 @@ endif()
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "tvOS")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "tvOS")
|
||||||
message("tvOS build detected!")
|
message("tvOS build detected!")
|
||||||
|
|
||||||
#set(ENABLE_VULKAN TRUE)
|
set(ENABLE_VULKAN TRUE)
|
||||||
set(ENABLE_DARWIN TRUE)
|
set(ENABLE_DARWIN TRUE)
|
||||||
set(ENABLE_TVOS TRUE)
|
set(ENABLE_TVOS TRUE)
|
||||||
set(ENABLE_METAL TRUE)
|
set(ENABLE_METAL TRUE)
|
||||||
|
@ -111,7 +115,7 @@ add_subdirectory(extern)
|
||||||
# enable lto
|
# enable lto
|
||||||
if (CMAKE_BUILD_TYPE EQUAL "Release")
|
if (CMAKE_BUILD_TYPE EQUAL "Release")
|
||||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
endif ()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(platforms)
|
add_subdirectory(platforms)
|
||||||
|
|
||||||
|
@ -119,4 +123,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||||
|
|
||||||
add_subdirectory(engine)
|
add_subdirectory(engine)
|
||||||
add_subdirectory(tools)
|
add_subdirectory(tools)
|
||||||
add_subdirectory(example)
|
|
||||||
|
if(BUILD_EXAMPLE)
|
||||||
|
add_subdirectory(example)
|
||||||
|
endif()
|
|
@ -1,6 +1,6 @@
|
||||||
set(CMAKE_FOLDER "Tools")
|
set(CMAKE_FOLDER "Tools")
|
||||||
|
|
||||||
if(NOT IOS AND NOT ENABLE_TVOS)
|
if(NOT NEEDS_HOSTED_SHADER_COMPILER)
|
||||||
add_subdirectory(shadercompiler)
|
add_subdirectory(shadercompiler)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Reference in a new issue