CMake: add library deps to CMakeLists.txt

Tested to work on Linux and macOS.

This will be enabled once all platforms are verified.

See D4684
This commit is contained in:
Campbell Barton
2019-04-16 06:18:52 +02:00
parent 813e470eac
commit 5498e7f193
62 changed files with 331 additions and 6 deletions

View File

@@ -38,6 +38,22 @@ blender_include_dirs(
)
set(LIB
bf_blenfont
bf_blenkernel
bf_blenlib
bf_blenloader
bf_depsgraph
bf_dna
bf_editor_datafiles
bf_imbuf
bf_intern_clog
bf_intern_guardedalloc
bf_intern_memutil
bf_intern_opencolorio
bf_python
bf_render
bf_rna
bf_windowmanager
)
add_definitions(${GL_DEFINITIONS})
@@ -57,6 +73,9 @@ if(WITH_CYCLES)
blender_include_dirs(../../intern/cycles/blender)
add_definitions(-DWITH_CYCLES_LOGGING)
endif()
list(APPEND LIB
bf_intern_cycles
)
endif()
if(WITH_CODEC_FFMPEG)
@@ -86,11 +105,17 @@ endif()
if(WITH_BINRELOC)
blender_include_dirs(${BINRELOC_INCLUDE_DIRS})
list(APPEND LIB
extern_binreloc
)
add_definitions(-DWITH_BINRELOC)
endif()
if(WITH_FREESTYLE)
blender_include_dirs(../blender/freestyle)
list(APPEND LIB
bf_freestyle
)
add_definitions(-DWITH_FREESTYLE)
endif()