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:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user