blender/extern/binreloc/CMakeLists.txt
Brecht Van Lommel e46f4c1a7e Refactor: Use more modern bf::dependencies and bf::extern in CMake
Replacing various include directories, defines and libraries specified
directly.

Additionally, this makes it so bf::dependencies are automatically added
last to the target. This ensures include directories from bf::extern libraries
have priority over them, so that e.g. our own fmtlib will be used rather than
one that might be installed on the system.

Pull Request: https://projects.blender.org/blender/blender/pulls/151920
2026-01-14 17:45:17 +01:00

26 lines
373 B
CMake

# SPDX-FileCopyrightText: 2008 Blender Foundation
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(INC
include
)
set(INC_SYS
PUBLIC include
)
set(SRC
binreloc.c
include/binreloc.h
)
set(LIB
)
add_definitions(-DENABLE_BINRELOC)
blender_add_lib(extern_binreloc "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
add_library(bf::extern::binreloc ALIAS extern_binreloc)