Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/CMakeLists.txt
| Show First 20 Lines • Show All 567 Lines • ▼ Show 20 Lines | data_to_c( | ||||
| ${CMAKE_CURRENT_SOURCE_DIR}/operations/COM_OpenCLKernels.cl | ${CMAKE_CURRENT_SOURCE_DIR}/operations/COM_OpenCLKernels.cl | ||||
| ${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h | ${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h | ||||
| SRC | SRC | ||||
| ) | ) | ||||
| add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS) | add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS) | ||||
| set(GENSRC_DIR ${CMAKE_CURRENT_BINARY_DIR}/operations) | set(GENSRC_DIR ${CMAKE_CURRENT_BINARY_DIR}/operations) | ||||
| set(GENSRC ${GENSRC_DIR}/COM_SMAAAreaTexture.h) | set(GENSRC ${GENSRC_DIR}/COM_SMAAAreaTexture.h) | ||||
ankitm: Suggest `target_compile_options` as it's the intended function, and also to clarify that it's a… | |||||
| add_custom_command( | add_custom_command( | ||||
| OUTPUT ${GENSRC} | OUTPUT ${GENSRC} | ||||
| COMMAND ${CMAKE_COMMAND} -E make_directory ${GENSRC_DIR} | COMMAND ${CMAKE_COMMAND} -E make_directory ${GENSRC_DIR} | ||||
| COMMAND "$<TARGET_FILE:smaa_areatex>" ${GENSRC} | COMMAND "$<TARGET_FILE:smaa_areatex>" ${GENSRC} | ||||
| DEPENDS smaa_areatex | DEPENDS smaa_areatex | ||||
| ) | ) | ||||
| add_custom_target(smaa_areatex_header | add_custom_target(smaa_areatex_header | ||||
| SOURCES ${GENSRC} | SOURCES ${GENSRC} | ||||
| Show All 18 Lines | if(WITH_OPENIMAGEDENOISE) | ||||
| list(APPEND LIB | list(APPEND LIB | ||||
| ${OPENIMAGEDENOISE_LIBRARIES} | ${OPENIMAGEDENOISE_LIBRARIES} | ||||
| ${TBB_LIBRARIES} | ${TBB_LIBRARIES} | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| blender_add_lib(bf_compositor "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | blender_add_lib(bf_compositor "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | ||||
| if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | |||||
| target_compile_options(bf_compositor PRIVATE "-Wsuggest-override") | |||||
| endif() | |||||
| add_dependencies(bf_compositor smaa_areatex_header) | add_dependencies(bf_compositor smaa_areatex_header) | ||||
Suggest target_compile_options as it's the intended function, and also to clarify that it's a warning for bf_compositor, instead of all targets under this directory (add_compile_options in that case). example: rBfced6f19be49de9024de2c0fa657f1849dfb54a8