-
Notifications
You must be signed in to change notification settings - Fork 145
/
CMakeLists.txt
47 lines (41 loc) · 2.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 2020 NVIDIA Corporation
# SPDX-License-Identifier: Apache-2.0
# This CMakeLists file builds the GVDB library and all of its samples.
# If you'd like to build the GVDB library by itself, try running the
# CMakeLists in source/gvdb_library.
cmake_minimum_required(VERSION 3.10)
project(gvdb_all)
# These samples depend only on the things included with GVDB.
add_subdirectory("source/gvdb_library" "gvdb_library")
add_subdirectory("source/g3DPrint" "g3DPrint")
add_subdirectory("source/gDepthMap" "gDepthMap")
add_subdirectory("source/gInteractiveGL" "gInteractiveGL")
add_subdirectory("source/gRenderKernel" "gRenderKernel")
add_subdirectory("source/gRenderToFile" "gRenderToFile")
add_subdirectory("source/gResample" "gResample")
add_subdirectory("source/gSprayDeposit" "gSprayDeposit")
# GVDB samples using OptiX, not built by default.
# To enable these samples, set GVDB_BUILD_OPTIX_SAMPLES to ON before configuring CMake.
set(GVDB_BUILD_OPTIX_SAMPLES OFF CACHE BOOL "If ON, includes samples using OptiX in build.")
if(GVDB_BUILD_OPTIX_SAMPLES)
add_subdirectory("source/gFluidSurface" "gFluidSurface")
add_subdirectory("source/gInteractiveOptix" "gInteractiveOptix")
add_subdirectory("source/gPointCloud" "gPointCloud")
add_subdirectory("source/gPointFusion" "gPointFusion")
endif()
# GVDB samples using OpenVDB, not built by default.
# To enable these samples, set GVDB_BUILD_OPENVDB and GVDB_BUILD_OPENVDB_SAMPLES to ON
# before configuring CMake.
# (Hypothetically, you can run these samples without including OpenVDB via GVDB_BUILD_OPENVDB,
# but you'll get an error!)
set(GVDB_BUILD_OPENVDB_SAMPLES OFF CACHE BOOL "If ON, includes samples using OpenVDB in build.")
if(GVDB_BUILD_OPENVDB_SAMPLES)
add_subdirectory("source/gImportVDB" "gImportVDB")
endif()
# GVDB samples using NanoVDB, not built by default.
# To enable these samples, set GVDB_BUILD_NANOVDB and GVDB_BUILD_NANOVDB_SAMPLES to ON
# before configuring CMake.
set(GVDB_BUILD_NANOVDB_SAMPLES OFF CACHE BOOL "If ON, includes samples using NanoVDB in build.")
if(GVDB_BUILD_NANOVDB_SAMPLES)
add_subdirectory("source/gNanoVDB" "gNanoVDB")
endif()