add OpenVulkano prefix to cmake options

This commit is contained in:
ohyzha
2025-01-24 17:14:24 +02:00
parent 90dc67ddb8
commit a61674b602
7 changed files with 20 additions and 20 deletions

View File

@@ -39,14 +39,14 @@ project (OpenVulkano VERSION 1.0 LANGUAGES C CXX)
SetOptimisationSettings()
# ------------------------- CMAKE OPTIONS -------------------------
option(TRACY_ENABLE "Enable Tracy Profiler" OFF)
option(ENABLE_ASSIMP "If assimp should be used" ON)
option(ENABLE_CURL "If curl should be used" ON)
option(ENABLE_KTX "If ktx images should be supported" ON)
option(ENABLE_TEST "Enable testing" ON)
option(ENABLE_EXAMPLE "Enable examples" ON)
option(ENABLE_MSDF "Enable msdf library" ON)
option(ENABLE_SHADERC "Enable runtime shader compiler" OFF)
option(OPENVULKANO_TRACY_ENABLE "Enable Tracy Profiler" OFF)
option(OPENVULKANO_ENABLE_ASSIMP "If assimp should be used" ON)
option(OPENVULKANO_ENABLE_CURL "If curl should be used" ON)
option(OPENVULKANO_ENABLE_KTX "If ktx images should be supported" ON)
option(OPENVULKANO_ENABLE_TEST "Enable testing" ON)
option(OPENVULKANO_ENABLE_EXAMPLES "Enable examples" ON)
option(OPENVULKANO_ENABLE_MSDF "Enable msdf library" ON)
option(OPENVULKANO_ENABLE_SHADERC "Enable runtime shader compiler" OFF)
# -----------------------------------------------------------------
if (IOS)
@@ -63,13 +63,13 @@ add_subdirectory(3rdParty)
add_subdirectory(openVulkanoCpp)
LinkTinyUSDZ(openVulkanoCpp)
if(ENABLE_TEST AND NOT IOS)
if(OPENVULKANO_ENABLE_TEST AND NOT IOS)
enable_testing()
add_subdirectory(tests)
endif()
# Finally generate the tests and examples
if(ENABLE_EXAMPLE)
if(OPENVULKANO_ENABLE_EXAMPLES)
add_subdirectory(examples)
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT OpenVulkano_Examples)
endif()