forked from bartvdbraak/blender
66dee44088
These warnings can reveal errors in logic, so quiet them by checking if the features are enabled before using variables or by assigning empty strings in some cases. - Check CMAKE_THREAD_LIBS_INIT is set before use as CMake docs note that this may be left unset if it's not needed. - Remove BOOST/OPENVDB/VULKAN references when disable. - Define INC_SYS even when empty. - Remove PNG_INC from freetype (not defined anywhere).
81 lines
1.4 KiB
CMake
81 lines
1.4 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright 2011-2022 Blender Foundation
|
|
|
|
set(INC
|
|
..
|
|
)
|
|
|
|
set(INC_SYS
|
|
)
|
|
|
|
set(SRC
|
|
adaptive_sampling.cpp
|
|
denoiser.cpp
|
|
denoiser_gpu.cpp
|
|
denoiser_oidn.cpp
|
|
denoiser_optix.cpp
|
|
path_trace.cpp
|
|
tile.cpp
|
|
pass_accessor.cpp
|
|
pass_accessor_cpu.cpp
|
|
pass_accessor_gpu.cpp
|
|
path_trace_display.cpp
|
|
path_trace_tile.cpp
|
|
path_trace_work.cpp
|
|
path_trace_work_cpu.cpp
|
|
path_trace_work_gpu.cpp
|
|
render_scheduler.cpp
|
|
shader_eval.cpp
|
|
work_balancer.cpp
|
|
work_tile_scheduler.cpp
|
|
)
|
|
|
|
set(SRC_HEADERS
|
|
adaptive_sampling.h
|
|
denoiser.h
|
|
denoiser_gpu.h
|
|
denoiser_oidn.h
|
|
denoiser_optix.h
|
|
path_trace.h
|
|
tile.h
|
|
pass_accessor.h
|
|
pass_accessor_cpu.h
|
|
pass_accessor_gpu.h
|
|
path_trace_display.h
|
|
path_trace_tile.h
|
|
path_trace_work.h
|
|
path_trace_work_cpu.h
|
|
path_trace_work_gpu.h
|
|
render_scheduler.h
|
|
shader_eval.h
|
|
work_balancer.h
|
|
work_tile_scheduler.h
|
|
)
|
|
|
|
set(LIB
|
|
cycles_device
|
|
|
|
# NOTE: Is required for RenderBuffers access. Might consider moving files around a bit to
|
|
# avoid such cyclic dependency.
|
|
cycles_session
|
|
|
|
cycles_util
|
|
)
|
|
|
|
if(WITH_OPENIMAGEDENOISE)
|
|
list(APPEND LIB
|
|
${OPENIMAGEDENOISE_LIBRARIES}
|
|
)
|
|
endif()
|
|
|
|
if(WITH_CYCLES_PATH_GUIDING)
|
|
list(APPEND LIB
|
|
${OPENPGL_LIBRARIES}
|
|
)
|
|
endif()
|
|
|
|
include_directories(${INC})
|
|
include_directories(SYSTEM ${INC_SYS})
|
|
|
|
cycles_add_library(cycles_integrator "${LIB}" ${SRC} ${SRC_HEADERS})
|