Changeset View
Changeset View
Standalone View
Standalone View
source/creator/CMakeLists.txt
| Show All 32 Lines | blender_include_dirs( | ||||
| ../blender/makesrna | ../blender/makesrna | ||||
| ../blender/render/extern/include | ../blender/render/extern/include | ||||
| ../blender/gpu | ../blender/gpu | ||||
| ../blender/makesdna | ../blender/makesdna | ||||
| ../blender/windowmanager | ../blender/windowmanager | ||||
| ) | ) | ||||
| set(LIB | set(LIB | ||||
| bf_blenloader | |||||
| bf_blenkernel | bf_blenkernel | ||||
| bf_blenlib | bf_blenloader | ||||
| bf_depsgraph | bf_depsgraph | ||||
| bf_dna | bf_dna | ||||
| bf_editor_datafiles | |||||
| bf_imbuf | bf_imbuf | ||||
| bf_intern_clog | bf_intern_clog | ||||
| bf_intern_guardedalloc | bf_intern_guardedalloc | ||||
| bf_intern_memutil | bf_intern_memutil | ||||
| bf_intern_opencolorio | bf_intern_opencolorio | ||||
| bf_python | |||||
| bf_render | bf_render | ||||
| bf_rna | bf_rna | ||||
| bf_windowmanager | bf_windowmanager | ||||
| ) | ) | ||||
| add_definitions(${GL_DEFINITIONS}) | add_definitions(${GL_DEFINITIONS}) | ||||
| blender_include_dirs("${GLEW_INCLUDE_PATH}") | blender_include_dirs("${GLEW_INCLUDE_PATH}") | ||||
| Show All 23 Lines | |||||
| if(WITH_TBB) | if(WITH_TBB) | ||||
| blender_include_dirs(${TBB_INCLUDE_DIRS}) | blender_include_dirs(${TBB_INCLUDE_DIRS}) | ||||
| link_directories(${LIBDIR}/tbb/lib) | link_directories(${LIBDIR}/tbb/lib) | ||||
| endif() | endif() | ||||
| if(WITH_PYTHON) | if(WITH_PYTHON) | ||||
| blender_include_dirs(../blender/python) | blender_include_dirs(../blender/python) | ||||
| list(APPEND LIB | |||||
| bf_python | |||||
| ) | |||||
| add_definitions(-DWITH_PYTHON) | add_definitions(-DWITH_PYTHON) | ||||
| if(WITH_PYTHON_SECURITY) | if(WITH_PYTHON_SECURITY) | ||||
| add_definitions(-DWITH_PYTHON_SECURITY) | add_definitions(-DWITH_PYTHON_SECURITY) | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| if(WITH_HEADLESS) | if(WITH_HEADLESS) | ||||
| ▲ Show 20 Lines • Show All 957 Lines • ▼ Show 20 Lines | |||||
| # Setup link libs | # Setup link libs | ||||
| add_dependencies(blender makesdna) | add_dependencies(blender makesdna) | ||||
| target_link_libraries(blender ${LIB}) | target_link_libraries(blender ${LIB}) | ||||
| unset(LIB) | unset(LIB) | ||||
| setup_liblinks(blender) | setup_liblinks(blender) | ||||
| # ----------------------------------------------------------------------------- | |||||
| # USD registry | |||||
| if (WIN32 AND WITH_USD) | |||||
| install(DIRECTORY | |||||
| ${LIBDIR}/usd/lib/usd | |||||
| DESTINATION "." | |||||
| ) | |||||
| endif() | |||||
sergey: Much weird and needs a comment. | |||||
| # vcpkg substitutes our libs with theirs, which will cause issues when you | # vcpkg substitutes our libs with theirs, which will cause issues when you | ||||
| # you run these builds on other systems due to missing dlls. So we opt out | # you run these builds on other systems due to missing dlls. So we opt out | ||||
| # the use of vcpkg | # the use of vcpkg | ||||
| if(WIN32) | if(WIN32) | ||||
| set_target_properties(blender PROPERTIES VS_GLOBAL_VcpkgEnabled "false") | set_target_properties(blender PROPERTIES VS_GLOBAL_VcpkgEnabled "false") | ||||
| endif() | endif() | ||||
| # ----------------------------------------------------------------------------- | # ----------------------------------------------------------------------------- | ||||
| Show All 21 Lines | |||||
Much weird and needs a comment.