prepare dx dev
This commit is contained in:
@@ -9,15 +9,18 @@ project(Basalt
|
||||
|
||||
# Provide options
|
||||
# Render Engines
|
||||
# option(BASALT_DIRECTX8_ENGINE "Build with DirectX 8 render engine support." OFF)
|
||||
# option(BASALT_DIRECTX9_ENGINE "Build with DirectX 9 render engine support." OFF)
|
||||
option(BASALT_DIRECTX11_ENGINE "Build with DirectX 11 render engine support." OFF)
|
||||
option(BASALT_OPENGL_ENGINE "Build with OpenGL render engine support." OFF)
|
||||
option(BASALT_VULKAN_ENGINE "Build with Vulkan render engine support." OFF)
|
||||
# option(BASALT_DIRECTX12_ENGINE "Build with DirectX 12 render engine support." OFF)
|
||||
# option(BASALT_OPENGL_ENGINE "Build with OpenGL render engine support." OFF)
|
||||
# option(BASALT_VULKAN_ENGINE "Build with Vulkan render engine support." OFF)
|
||||
# Data Delivers
|
||||
option(BASALT_CUDA_DELIVER "Build with CUDA data deliver support." OFF)
|
||||
option(BASALT_ROCM_DELIVER "Build with ROCm data deliver support." OFF)
|
||||
# option(BASALT_ROCM_DELIVER "Build with ROCm data deliver support." OFF)
|
||||
option(BASALT_PIPE_DELIVER "Build with system pipe data deliver support." OFF)
|
||||
option(BASALT_TCP_DELIVER "Build with TCP data deliver support." OFF)
|
||||
option(BASALT_MMAP_DELIVER "Build with system shared memory data deliver support." OFF)
|
||||
# option(BASALT_TCP_DELIVER "Build with TCP data deliver support." OFF)
|
||||
# option(BASALT_MMAP_DELIVER "Build with system shared memory data deliver support." OFF)
|
||||
# 3D Objects Loaders
|
||||
option(BASALT_OBJ_OBJECT_LOADER "Build with Wavefront OBJ 3D object loader support." OFF)
|
||||
option(BASALT_GLTF_OBJECT_LOADER "Build with glTF 3D object loader support." OFF)
|
||||
@@ -29,14 +32,20 @@ set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
# Include some essential CMake components
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# Import packages
|
||||
# Find required packages based on options
|
||||
if (BASALT_CUDA_DELIVER)
|
||||
find_package(CUDA REQUIRED)
|
||||
endif ()
|
||||
if (BASALT_DIRECTX11_ENGINE)
|
||||
include(cmake/FindDirectX11.cmake)
|
||||
endif ()
|
||||
|
||||
|
||||
# Include projects
|
||||
add_subdirectory(Shared)
|
||||
add_subdirectory(Presenter)
|
||||
add_subdirectory(Plugins)
|
||||
|
||||
# Add your executable or library targets here
|
||||
# Example for an executable:
|
||||
# add_executable(basalt main.cpp)
|
||||
|
||||
# Example for a library:
|
||||
# add_library(basalt src/basalt.cpp)
|
||||
Reference in New Issue
Block a user