CMake: add library deps to CMakeLists.txt
authorCampbell Barton <ideasman42@gmail.com>
Tue, 16 Apr 2019 04:18:52 +0000 (06:18 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 16 Apr 2019 04:20:52 +0000 (06:20 +0200)
Tested to work on Linux and macOS.

This will be enabled once all platforms are verified.

See D4684

62 files changed:
extern/ceres/CMakeLists.txt
extern/ceres/bundle.sh
extern/glog/CMakeLists.txt
intern/audaspace/CMakeLists.txt
intern/cycles/blender/CMakeLists.txt
intern/cycles/bvh/CMakeLists.txt
intern/cycles/device/CMakeLists.txt
intern/cycles/kernel/CMakeLists.txt
intern/cycles/kernel/osl/CMakeLists.txt
intern/cycles/render/CMakeLists.txt
intern/ghost/CMakeLists.txt
intern/libmv/CMakeLists.txt
intern/libmv/bundle.sh
source/blender/blenfont/CMakeLists.txt
source/blender/blenkernel/CMakeLists.txt
source/blender/blenlib/CMakeLists.txt
source/blender/blenloader/CMakeLists.txt
source/blender/blentranslation/CMakeLists.txt
source/blender/bmesh/CMakeLists.txt
source/blender/compositor/CMakeLists.txt
source/blender/draw/CMakeLists.txt
source/blender/editors/animation/CMakeLists.txt
source/blender/editors/armature/CMakeLists.txt
source/blender/editors/curve/CMakeLists.txt
source/blender/editors/gpencil/CMakeLists.txt
source/blender/editors/interface/CMakeLists.txt
source/blender/editors/io/CMakeLists.txt
source/blender/editors/mesh/CMakeLists.txt
source/blender/editors/object/CMakeLists.txt
source/blender/editors/physics/CMakeLists.txt
source/blender/editors/scene/CMakeLists.txt
source/blender/editors/screen/CMakeLists.txt
source/blender/editors/sculpt_paint/CMakeLists.txt
source/blender/editors/sound/CMakeLists.txt
source/blender/editors/space_action/CMakeLists.txt
source/blender/editors/space_api/CMakeLists.txt
source/blender/editors/space_clip/CMakeLists.txt
source/blender/editors/space_console/CMakeLists.txt
source/blender/editors/space_graph/CMakeLists.txt
source/blender/editors/space_image/CMakeLists.txt
source/blender/editors/space_nla/CMakeLists.txt
source/blender/editors/space_node/CMakeLists.txt
source/blender/editors/space_outliner/CMakeLists.txt
source/blender/editors/space_sequencer/CMakeLists.txt
source/blender/editors/space_statusbar/CMakeLists.txt
source/blender/editors/space_text/CMakeLists.txt
source/blender/editors/space_view3d/CMakeLists.txt
source/blender/editors/transform/CMakeLists.txt
source/blender/editors/undo/CMakeLists.txt
source/blender/freestyle/CMakeLists.txt
source/blender/gpu/CMakeLists.txt
source/blender/ikplugin/CMakeLists.txt
source/blender/imbuf/CMakeLists.txt
source/blender/makesrna/intern/CMakeLists.txt
source/blender/modifiers/CMakeLists.txt
source/blender/python/bmesh/CMakeLists.txt
source/blender/python/generic/CMakeLists.txt
source/blender/python/intern/CMakeLists.txt
source/blender/python/mathutils/CMakeLists.txt
source/blender/render/CMakeLists.txt
source/blender/windowmanager/CMakeLists.txt
source/creator/CMakeLists.txt

index fad0734..7653bc4 100644 (file)
@@ -257,7 +257,7 @@ set(SRC
 )
 
 set(LIB
-
+       extern_glog
 )
 
 if(WITH_LIBMV_SCHUR_SPECIALIZATIONS)
index b084eb4..561e2b4 100755 (executable)
@@ -136,7 +136,7 @@ ${headers}
 )
 
 set(LIB
-
+       extern_glog
 )
 
 if(WITH_LIBMV_SCHUR_SPECIALIZATIONS)
index 1b1abbf..47c5063 100644 (file)
@@ -54,6 +54,7 @@ set(SRC
 )
 
 set(LIB
+       extern_gflags
 )
 
 if(WIN32)
index 6b828b2..21657d6 100644 (file)
@@ -41,6 +41,12 @@ endif()
 set(LIB
 )
 
+if(NOT WITH_SYSTEM_AUDASPACE)
+       list(APPEND LIB
+               audaspace
+       )
+endif()
+
 if(WITH_PYTHON)
        list(APPEND INC_SYS
                ${PYTHON_INCLUDE_DIRS}
@@ -49,6 +55,12 @@ if(WITH_PYTHON)
                intern/AUD_PyInit.cpp
                intern/AUD_PyInit.h
        )
+       if(NOT WITH_SYSTEM_AUDASPACE)
+               list(APPEND LIB
+                       audaspace-py
+               )
+       endif()
+
        add_definitions(-DWITH_PYTHON)
 endif()
 
index 3f8868d..ccbe20b 100644 (file)
@@ -39,6 +39,13 @@ set(SRC
 )
 
 set(LIB
+       cycles_bvh
+       cycles_device
+       cycles_graph
+       cycles_kernel
+       cycles_render
+       cycles_subd
+       cycles_util
 )
 
 set(ADDON_FILES
index 52f4138..ea31838 100644 (file)
@@ -36,7 +36,7 @@ set(SRC_HEADERS
 )
 
 set(LIB
-
+       cycles_render
 )
 
 include_directories(${INC})
index f0f0390..d804a07 100644 (file)
@@ -62,6 +62,16 @@ set(LIB
 
 )
 
+if(WITH_CUDA_DYNLOAD)
+       list(APPEND LIB
+               extern_cuew
+       )
+else()
+       list(APPEND LIB
+               ${CUDA_CUDA_LIBRARY}
+       )
+endif()
+
 add_definitions(${GL_DEFINITIONS})
 if(WITH_CYCLES_NETWORK)
        add_definitions(-DWITH_NETWORK)
index cbb6996..01552df 100644 (file)
@@ -474,6 +474,9 @@ endif()
 # OSL module
 
 if(WITH_CYCLES_OSL)
+       list(APPEND LIB
+               cycles_kernel_osl
+       )
        add_subdirectory(osl)
        add_subdirectory(shaders)
 endif()
index 804610b..0a3d0b9 100644 (file)
@@ -26,7 +26,7 @@ set(HEADER_SRC
 )
 
 set(LIB
-
+       cycles_render
 )
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
index af0f8b8..140fcb2 100644 (file)
@@ -74,8 +74,15 @@ set(SRC_HEADERS
 )
 
 set(LIB
+       cycles_bvh
 )
 
+if(WITH_CYCLES_OSL)
+       list(APPEND LIB
+               cycles_kernel_osl
+       )
+endif()
+
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
 
 include_directories(${INC})
index eeec5ab..a43906c 100644 (file)
@@ -85,6 +85,9 @@ set(SRC
 )
 
 set(LIB
+       bf_intern_glew_mx
+       bf_intern_string
+       ${GLEW_LIBRARY}
 )
 
 if(WITH_GHOST_DEBUG)
@@ -195,6 +198,10 @@ elseif(WITH_X11)
        if(WITH_GHOST_XDND)
                add_definitions(-DWITH_XDND)
 
+               list(APPEND LIB
+                       extern_xdnd
+               )
+
                list(APPEND INC
                        ../../extern/xdnd
                )
index 91e638c..b2193ae 100644 (file)
@@ -34,7 +34,8 @@ set(SRC
 )
 
 set(LIB
-
+       extern_ceres
+       extern_glog
 )
 
 if(WITH_LIBMV)
index 27fc0e8..ca7f22a 100755 (executable)
@@ -113,7 +113,8 @@ set(SRC
 )
 
 set(LIB
-
+       extern_ceres
+       extern_glog
 )
 
 if(WITH_LIBMV)
index 25497d1..78d8053 100644 (file)
@@ -52,6 +52,8 @@ set(SRC
 )
 
 set(LIB
+       bf_gpu
+       bf_intern_guardedalloc
 )
 
 if(WIN32)
index 390ac51..696d252 100644 (file)
@@ -355,6 +355,31 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_animation  # FIXME, bad level (compare_ak_cfraPtr)
+
+       bf_blenfont
+       bf_blenlib
+       bf_blenloader
+       bf_blentranslation
+       bf_bmesh
+       bf_depsgraph
+       bf_draw
+       bf_gpencil_modifiers
+       bf_gpu
+       bf_ikplugin
+       bf_imbuf
+       bf_intern_ghost
+       bf_intern_guardedalloc
+       bf_intern_libmv  # Uses stub when disabled.
+       bf_intern_mikktspace
+       bf_intern_opensubdiv  # Uses stub when disabled.
+       bf_modifiers
+       bf_nodes
+       bf_physics
+       bf_python
+       bf_python_bmesh
+       bf_rna
+       bf_shader_fx
 )
 
 if(WITH_BINRELOC)
@@ -387,6 +412,10 @@ if(WITH_BULLET)
        list(APPEND INC
                ../../../intern/rigidbody
        )
+       list(APPEND LIB
+               bf_intern_rigidbody
+               extern_bullet
+       )
        add_definitions(-DWITH_BULLET)
 endif()
 
@@ -481,6 +510,9 @@ if(WITH_MOD_FLUID)
        list(APPEND INC
                ../../../intern/elbeem/extern
        )
+       list(APPEND LIB
+               bf_intern_elbeem
+       )
        add_definitions(-DWITH_MOD_FLUID)
 endif()
 
@@ -488,6 +520,9 @@ if(WITH_MOD_SMOKE)
        list(APPEND INC
                ../../../intern/smoke/extern
        )
+       list(APPEND LIB
+               bf_intern_smoke
+       )
        add_definitions(-DWITH_SMOKE)
 endif()
 
@@ -509,6 +544,9 @@ if(WITH_LZO)
                list(APPEND INC_SYS
                        ../../../extern/lzo/minilzo
                )
+               list(APPEND LIB
+                       extern_minilzo
+               )
        endif()
        add_definitions(-DWITH_LZO)
 endif()
@@ -517,6 +555,9 @@ if(WITH_LZMA)
        list(APPEND INC_SYS
                ../../../extern/lzma
        )
+       list(APPEND LIB
+               extern_lzma
+       )
        add_definitions(-DWITH_LZMA)
 endif()
 
@@ -557,6 +598,9 @@ if(WITH_OPENVDB)
        list(APPEND INC
                 ../../../intern/openvdb
        )
+       list(APPEND LIB
+                bf_intern_openvdb
+       )
        add_definitions(-DWITH_OPENVDB)
 
        if(WITH_OPENVDB_BLOSC)
index 18332f5..22cd4fb 100644 (file)
@@ -234,6 +234,10 @@ set(SRC
 )
 
 set(LIB
+       bf_intern_eigen
+       bf_intern_guardedalloc
+       bf_intern_numaapi
+       extern_wcwidth
 )
 
 if(WITH_MEM_VALGRIND)
index 26d1ee1..ffb77a0 100644 (file)
@@ -68,6 +68,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_BUILDINFO)
index 2a397af..5bb35d7 100644 (file)
@@ -40,10 +40,15 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
        add_definitions(-DWITH_INTERNATIONAL)
+       list(APPEND LIB
+               bf_intern_locale
+       )
 endif()
 
 if(WITH_PYTHON)
index 6e228bb..7e34d1e 100644 (file)
@@ -164,6 +164,7 @@ set(SRC
 )
 
 set(LIB
+       extern_rangetree
 )
 
 if(MSVC AND NOT MSVC_CLANG)
@@ -174,6 +175,9 @@ if(WITH_BULLET)
        list(APPEND INC_SYS
                ${BULLET_INCLUDE_DIRS}
        )
+       list(APPEND LIB
+               extern_bullet
+       )
        add_definitions(-DWITH_BULLET)
 endif()
 
index 67e7afe..2b03b71 100644 (file)
@@ -540,6 +540,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       extern_clew
 )
 
 list(APPEND INC
index fe9b3d1..a01e247 100644 (file)
@@ -152,6 +152,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 data_to_c_simple(engines/eevee/shaders/ambient_occlusion_lib.glsl SRC)
index 14936e5..a8de87e 100644 (file)
@@ -54,6 +54,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index d63c53a..27eddd7 100644 (file)
@@ -59,6 +59,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index 726a744..4ccf8d5 100644 (file)
@@ -49,6 +49,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       extern_curve_fit_nd
 )
 
 if(WITH_INTERNATIONAL)
index 53b527d..fa91ffd 100644 (file)
@@ -62,6 +62,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index 78b0202..fd6b0e4 100644 (file)
@@ -80,6 +80,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_editor_datafiles
 )
 
 if(WITH_INTERNATIONAL)
index 1aa6de5..6e3e111 100644 (file)
@@ -47,13 +47,21 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_OPENCOLLADA)
+       list(APPEND LIB
+               bf_collada
+       )
        add_definitions(-DWITH_COLLADA)
 endif()
 
 if(WITH_ALEMBIC)
+       list(APPEND LIB
+               bf_alembic
+       )
        add_definitions(-DWITH_ALEMBIC)
 
        if(WITH_ALEMBIC_HDF5)
index 41e247b..707aeb7 100644 (file)
@@ -73,6 +73,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index 7a5eee4..75d2fad 100644 (file)
@@ -69,6 +69,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_render
 )
 
 add_definitions(${GL_DEFINITIONS})
index 25b76f5..39a34ed 100644 (file)
@@ -51,15 +51,26 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_MOD_FLUID)
        list(APPEND INC
                ../../../../intern/elbeem/extern
        )
+       list(APPEND LIB
+               bf_intern_elbeem
+       )
        add_definitions(-DWITH_MOD_FLUID)
 endif()
 
+if(WITH_MOD_SMOKE)
+       list(APPEND LIB
+               bf_intern_smoke
+       )
+endif()
+
 if(WITH_INTERNATIONAL)
        add_definitions(-DWITH_INTERNATIONAL)
 endif()
index 0768e0e..be1cd09 100644 (file)
@@ -35,6 +35,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index a4a0b87..11516a7 100644 (file)
@@ -55,6 +55,8 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_datafiles
+       bf_editor_space_sequencer
 )
 
 if(WITH_INTERNATIONAL)
index d772a1a..e7a8c70 100644 (file)
@@ -65,6 +65,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index a7d128a..8b1caa0 100644 (file)
@@ -36,12 +36,17 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_AUDASPACE)
        list(APPEND INC_SYS
                ${AUDASPACE_C_INCLUDE_DIRS}
        )
+       list(APPEND LIB
+               bf_intern_audaspace
+       )
        add_definitions(-DWITH_AUDASPACE)
 endif()
 
index aff4e75..8535771 100644 (file)
@@ -45,6 +45,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 add_definitions(${GL_DEFINITIONS})
index 8f74426..6a440f3 100644 (file)
@@ -35,6 +35,26 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_io
+       bf_editor_sound
+       bf_editor_space_action
+       bf_editor_space_buttons
+       bf_editor_space_clip
+       bf_editor_space_console
+       bf_editor_space_file
+       bf_editor_space_graph
+       bf_editor_space_image
+       bf_editor_space_info
+       bf_editor_space_nla
+       bf_editor_space_node
+       bf_editor_space_outliner
+       bf_editor_space_script
+       bf_editor_space_sequencer
+       bf_editor_space_statusbar
+       bf_editor_space_text
+       bf_editor_space_topbar
+       bf_editor_space_userpref
+       bf_editor_space_view3d
 )
 
 blender_add_lib(bf_editor_space_api "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
index d770a85..49d7efb 100644 (file)
@@ -64,6 +64,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 add_definitions(${GL_DEFINITIONS})
index d68e774..d8645c3 100644 (file)
@@ -41,6 +41,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_PYTHON)
index 391d0df..e0fc750 100644 (file)
@@ -46,12 +46,17 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_AUDASPACE)
        list(APPEND INC_SYS
                ${AUDASPACE_C_INCLUDE_DIRS}
        )
+       list(APPEND LIB
+               bf_intern_audaspace
+       )
        add_definitions(-DWITH_AUDASPACE)
 endif()
 
index 99ede33..2687849 100644 (file)
@@ -48,6 +48,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_editor_uvedit
 )
 
 if(WITH_INTERNATIONAL)
index 35c29ad..f22cc37 100644 (file)
@@ -46,6 +46,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_INTERNATIONAL)
index 2c1ec0c..5e2437c 100644 (file)
@@ -58,6 +58,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_editor_screen
 )
 
 if(WITH_INTERNATIONAL)
index ae2d525..83832d6 100644 (file)
@@ -50,6 +50,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_editor_undo
 )
 
 if(WITH_INTERNATIONAL)
index bf70473..5724e81 100644 (file)
@@ -51,6 +51,8 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_interface
+       bf_editor_util
 )
 
 if(WITH_AUDASPACE)
index 3b1372b..6356262 100644 (file)
@@ -38,6 +38,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 add_definitions(${GL_DEFINITIONS})
index b542732..f4054a0 100644 (file)
@@ -52,6 +52,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 add_definitions(${GL_DEFINITIONS})
index e3f5245..837671d 100644 (file)
@@ -73,6 +73,8 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_lattice
+       bf_editor_mesh
 )
 
 if(WITH_PYTHON)
index 7d3690d..c475a9e 100644 (file)
@@ -55,6 +55,12 @@ set(SRC
 )
 
 set(LIB
+       bf_blenfont
+       bf_blenkernel
+       bf_blenlib
+       bf_bmesh
+       bf_editor_mask
+       bf_gpu
 )
 
 if(WITH_INTERNATIONAL)
index 3a6aded..cebfa0d 100644 (file)
@@ -37,6 +37,13 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_editor_curve
+       bf_editor_lattice
+       bf_editor_mesh
+       bf_editor_metaball
+       bf_editor_physics
 )
 
 if(WITH_INTERNATIONAL)
index 9dfeb06..4292eef 100644 (file)
@@ -548,6 +548,7 @@ set(SRC
 )
 
 set(LIB
+       bf_python_mathutils
 )
 
 set(INC
index 430eefe..d7a0328 100644 (file)
@@ -124,6 +124,7 @@ set(SRC
 )
 
 set(LIB
+       extern_glew
 )
 
 data_to_c_simple(shaders/gpu_shader_depth_only_frag.glsl SRC)
index e741bf9..654d83d 100644 (file)
@@ -43,6 +43,9 @@ set(LIB
 )
 
 if(WITH_IK_SOLVER)
+       list(APPEND LIB
+               bf_intern_iksolver
+       )
        list(APPEND INC
                ../../../intern/iksolver/extern
        )
@@ -54,6 +57,9 @@ if(WITH_IK_SOLVER)
 endif()
 
 if(WITH_IK_ITASC)
+       list(APPEND LIB
+               bf_intern_itasc
+       )
        list(APPEND INC
                ../../../intern/itasc
        )
index 5c16e0d..5d85971 100644 (file)
@@ -84,9 +84,17 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_blenloader
+       bf_intern_guardedalloc
+       bf_intern_memutil
 )
 
 if(WITH_IMAGE_OPENEXR)
+       list(APPEND LIB
+               bf_imbuf_openexr
+       )
        add_definitions(-DWITH_OPENEXR)
 else()
        list(APPEND SRC
@@ -106,6 +114,9 @@ endif()
 
 
 if(WITH_OPENIMAGEIO)
+       list(APPEND LIB
+               bf_imbuf_openimageio
+       )
        add_definitions(-DWITH_OPENIMAGEIO)
 endif()
 
@@ -124,6 +135,9 @@ if(WITH_CODEC_AVI)
        list(APPEND INC
                ../avi
        )
+       list(APPEND LIB
+               bf_avi
+       )
        add_definitions(-DWITH_AVI)
 endif()
 
@@ -144,10 +158,16 @@ if(WITH_CODEC_FFMPEG)
 endif()
 
 if(WITH_IMAGE_DDS)
+       list(APPEND LIB
+               bf_imbuf_dds
+       )
        add_definitions(-DWITH_DDS)
 endif()
 
 if(WITH_IMAGE_CINEON)
+       list(APPEND LIB
+               bf_imbuf_cineon
+       )
        add_definitions(-DWITH_CINEON)
 endif()
 
index 8521e06..81ea7c0 100644 (file)
@@ -373,6 +373,23 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_armature
+       bf_editor_curve
+       bf_editor_gizmo_library
+       bf_editor_gpencil
+       bf_editor_mesh
+       bf_editor_object
+       bf_editor_physics
+       bf_editor_render
+       bf_editor_scene
+       bf_editor_sculpt_paint
+       bf_editor_space_clip
+       bf_editor_space_file
+       bf_editor_space_image
+       bf_editor_space_info
+       bf_editor_space_node
+       bf_editor_space_view3d
+       bf_editor_transform
 )
 
 add_definitions(${GL_DEFINITIONS})
index 8cf6382..33bdd90 100644 (file)
@@ -109,6 +109,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
 )
 
 if(WITH_ALEMBIC)
@@ -116,12 +118,18 @@ if(WITH_ALEMBIC)
        list(APPEND INC
                ../alembic
        )
+       list(APPEND LIB
+               bf_alembic
+       )
 endif()
 
 if(WITH_MOD_REMESH)
        list(APPEND INC
                ../../../intern/dualcon
        )
+       list(APPEND LIB
+               bf_intern_dualcon
+       )
        add_definitions(-DWITH_MOD_REMESH)
 endif()
 
@@ -134,6 +142,9 @@ if(WITH_MOD_OCEANSIM)
 endif()
 
 if(WITH_BULLET)
+       list(APPEND LIB
+               extern_bullet
+       )
        add_definitions(-DWITH_BULLET)
 endif()
 
index 8e92b43..23ecdf4 100644 (file)
@@ -52,6 +52,9 @@ set(SRC
 )
 
 set(LIB
+       bf_blenkernel
+       bf_blenlib
+       bf_python_mathutils
 )
 
 if(WITH_FREESTYLE)
index 3ebd90e..ea766d9 100644 (file)
@@ -51,6 +51,7 @@ set(SRC
 )
 
 set(LIB
+       ${GLEW_LIBRARY}
 )
 
 add_definitions(${GL_DEFINITIONS})
index d517d6a..f8b493b 100644 (file)
@@ -118,6 +118,9 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_interface
+       bf_editor_space_api
+       bf_python_gpu
 )
 
 # only to check if buildinfo is available
index b973875..7b0c042 100644 (file)
@@ -56,6 +56,8 @@ set(SRC
 )
 
 set(LIB
+       bf_blenlib
+       bf_python_ext
 )
 
 
index 96c8b9c..d6bbbbd 100644 (file)
@@ -80,6 +80,9 @@ if(WITH_PYTHON)
 endif()
 
 if(WITH_IMAGE_OPENEXR)
+       list(APPEND LIB
+               bf_imbuf_openexr
+       )
        add_definitions(-DWITH_OPENEXR)
 endif()
 
@@ -91,6 +94,9 @@ if(WITH_FREESTYLE)
        list(APPEND INC
                ../freestyle
        )
+       list(APPEND LIB
+               bf_freestyle
+       )
        add_definitions(-DWITH_FREESTYLE)
 endif()
 
index 3f4f180..63253c3 100644 (file)
@@ -107,6 +107,7 @@ set(SRC
 )
 
 set(LIB
+       bf_editor_screen
 )
 
 if(WITH_AUDASPACE)
@@ -166,6 +167,9 @@ if(WIN32)
 endif()
 
 if(WITH_COMPOSITOR)
+       list(APPEND LIB
+               bf_compositor
+       )
        add_definitions(-DWITH_COMPOSITOR)
 endif()
 
index 5111e2b..83e1c95 100644 (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()