blender/intern/cycles/util/CMakeLists.txt
Sergey Sharybin 0579eaae1f Cycles: Make all #include statements relative to cycles source directory
The idea is to make include statements more explicit and obvious where the
file is coming from, additionally reducing chance of wrong header being
picked up.

For example, it was not obvious whether bvh.h was refferring to builder
or traversal, whenter node.h is a generic graph node or a shader node
and cases like that.

Surely this might look obvious for the active developers, but after some
time of not touching the code it becomes less obvious where file is coming
from.

This was briefly mentioned in T50824 and seems @brecht is fine with such
explicitness, but need to agree with all active developers before committing
this.

Please note that this patch is lacking changes related on GPU/OpenCL
support. This will be solved if/when we all agree this is a good idea to move
forward.

Reviewers: brecht, lukasstockner97, maiself, nirved, dingto, juicyfruit, swerner

Reviewed By: lukasstockner97, maiself, nirved, dingto

Subscribers: brecht

Differential Revision: https://developer.blender.org/D2586
2017-03-29 13:41:11 +02:00

96 lines
1.4 KiB
CMake

set(INC
..
../../glew-mx
)
set(INC_SYS
${GLEW_INCLUDE_DIR}
)
set(SRC
util_aligned_malloc.cpp
util_debug.cpp
util_logging.cpp
util_math_cdf.cpp
util_md5.cpp
util_path.cpp
util_string.cpp
util_simd.cpp
util_system.cpp
util_task.cpp
util_thread.cpp
util_time.cpp
util_transform.cpp
util_windows.cpp
)
if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI)
list(APPEND SRC
util_view.cpp
)
endif()
set(SRC_HEADERS
util_algorithm.h
util_aligned_malloc.h
util_args.h
util_atomic.h
util_boundbox.h
util_debug.h
util_guarded_allocator.cpp
util_foreach.h
util_function.h
util_guarded_allocator.h
util_half.h
util_hash.h
util_image.h
util_image_impl.h
util_list.h
util_logging.h
util_map.h
util_math.h
util_math_cdf.h
util_math_fast.h
util_math_intersect.h
util_md5.h
util_opengl.h
util_optimization.h
util_param.h
util_path.h
util_progress.h
util_queue.h
util_set.h
util_simd.h
util_sky_model.cpp
util_sky_model.h
util_sky_model_data.h
util_avxf.h
util_sseb.h
util_ssef.h
util_ssei.h
util_stack_allocator.h
util_static_assert.h
util_stats.h
util_string.h
util_system.h
util_task.h
util_texture.h
util_thread.h
util_time.h
util_transform.h
util_types.h
util_vector.h
util_version.h
util_view.h
util_windows.h
util_xml.h
)
include_directories(${INC})
include_directories(SYSTEM ${INC_SYS})
add_definitions(${GL_DEFINITIONS})
add_library(cycles_util ${SRC} ${SRC_HEADERS})