Changeset View
Changeset View
Standalone View
Standalone View
intern/opensubdiv/CMakeLists.txt
| Show All 23 Lines | if(WITH_OPENSUBDIV) | ||||
| macro(OPENSUBDIV_DEFINE_COMPONENT component) | macro(OPENSUBDIV_DEFINE_COMPONENT component) | ||||
| if(${${component}}) | if(${${component}}) | ||||
| add_definitions(-D${component}) | add_definitions(-D${component}) | ||||
| endif() | endif() | ||||
| endmacro() | endmacro() | ||||
| list(APPEND INC_SYS | list(APPEND INC_SYS | ||||
| ${OPENSUBDIV_INCLUDE_DIRS} | ${OPENSUBDIV_INCLUDE_DIRS} | ||||
| ${GLEW_INCLUDE_PATH} | ${Epoxy_INCLUDE_DIRS} | ||||
| ) | ) | ||||
| list(APPEND SRC | list(APPEND SRC | ||||
| # Base. | # Base. | ||||
| internal/base/memory.h | internal/base/memory.h | ||||
| internal/base/opensubdiv_capi.cc | internal/base/opensubdiv_capi.cc | ||||
| internal/base/type.h | internal/base/type.h | ||||
| internal/base/type_convert.cc | internal/base/type_convert.cc | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if(WITH_OPENSUBDIV) | ||||
| OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENMP) | OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENMP) | ||||
| OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENCL) | OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENCL) | ||||
| OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_CUDA) | OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_CUDA) | ||||
| OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK) | OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK) | ||||
| OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_GLSL_COMPUTE) | OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_GLSL_COMPUTE) | ||||
| add_definitions(${GL_DEFINITIONS}) | add_definitions(${GL_DEFINITIONS}) | ||||
| add_definitions(-DOSD_USES_GLEW) | |||||
| if(WIN32) | if(WIN32) | ||||
| add_definitions(-DNOMINMAX) | add_definitions(-DNOMINMAX) | ||||
| add_definitions(-D_USE_MATH_DEFINES) | add_definitions(-D_USE_MATH_DEFINES) | ||||
| endif() | endif() | ||||
| data_to_c_simple(internal/evaluator/shaders/glsl_compute_kernel.glsl SRC) | data_to_c_simple(internal/evaluator/shaders/glsl_compute_kernel.glsl SRC) | ||||
| else() | else() | ||||
| Show All 20 Lines | |||||