Changeset View
Changeset View
Standalone View
Standalone View
intern/mikktspace/CMakeLists.txt
| # SPDX-License-Identifier: GPL-2.0-or-later | # SPDX-License-Identifier: GPL-2.0-or-later | ||||
| # Copyright 2006 Blender Foundation. All rights reserved. | # Copyright 2006 Blender Foundation. All rights reserved. | ||||
| if(CMAKE_COMPILER_IS_GNUCC) | add_library(bf_intern_mikktspace INTERFACE) | ||||
| remove_cc_flag( | target_include_directories(bf_intern_mikktspace INTERFACE .) | ||||
| "-Wshadow" | |||||
| "-Werror=shadow" | |||||
| ) | |||||
| endif() | |||||
| set(INC | |||||
| . | |||||
| ) | |||||
| set(INC_SYS | |||||
| ) | if(WITH_TBB) | ||||
| target_compile_definitions(bf_intern_mikktspace INTERFACE -DWITH_TBB) | |||||
| target_include_directories(bf_intern_mikktspace INTERFACE ${TBB_INCLUDE_DIRS}) | |||||
| target_link_libraries(bf_intern_mikktspace INTERFACE ${TBB_LIBRARIES}) | |||||
| endif() | |||||
| # CMake 3.19+ allows one to populate the interface library with | |||||
| # source files to show in the IDE. | |||||
| if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19") | |||||
| set(SRC | set(SRC | ||||
| mikktspace.c | mikk_atomic_hash_set.hh | ||||
| mikk_float3.hh | |||||
| mikktspace.h | mikk_util.hh | ||||
| ) | mikktspace.hh | ||||
| set(LIB | |||||
| ) | ) | ||||
| target_sources(bf_intern_mikktspace PRIVATE ${SRC}) | |||||
| blender_add_lib(bf_intern_mikktspace "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | blender_source_group(bf_intern_mikktspace ${SRC}) | ||||
| endif() | |||||