Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/macros.cmake
| Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | if(WITH_BOOST) | ||||
| link_directories(${BOOST_LIBPATH}) | link_directories(${BOOST_LIBPATH}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENIMAGEIO) | if(WITH_OPENIMAGEIO) | ||||
| link_directories(${OPENIMAGEIO_LIBPATH}) | link_directories(${OPENIMAGEIO_LIBPATH}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENCOLORIO) | if(WITH_OPENCOLORIO) | ||||
| link_directories(${OPENCOLORIO_LIBPATH}) | link_directories(${OPENCOLORIO_LIBPATH}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| link_directories(${OPENVDB_LIBPATH}) | |||||
| endif() | |||||
| if(WITH_IMAGE_OPENJPEG AND WITH_SYSTEM_OPENJPEG) | if(WITH_IMAGE_OPENJPEG AND WITH_SYSTEM_OPENJPEG) | ||||
| link_directories(${OPENJPEG_LIBPATH}) | link_directories(${OPENJPEG_LIBPATH}) | ||||
| endif() | endif() | ||||
| if(WITH_CODEC_QUICKTIME) | if(WITH_CODEC_QUICKTIME) | ||||
| link_directories(${QUICKTIME_LIBPATH}) | link_directories(${QUICKTIME_LIBPATH}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENAL) | if(WITH_OPENAL) | ||||
| link_directories(${OPENAL_LIBPATH}) | link_directories(${OPENAL_LIBPATH}) | ||||
| ▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | if(WITH_IMAGE_TIFF) | ||||
| target_link_libraries(${target} ${TIFF_LIBRARY}) | target_link_libraries(${target} ${TIFF_LIBRARY}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENIMAGEIO) | if(WITH_OPENIMAGEIO) | ||||
| target_link_libraries(${target} ${OPENIMAGEIO_LIBRARIES}) | target_link_libraries(${target} ${OPENIMAGEIO_LIBRARIES}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENCOLORIO) | if(WITH_OPENCOLORIO) | ||||
| target_link_libraries(${target} ${OPENCOLORIO_LIBRARIES}) | target_link_libraries(${target} ${OPENCOLORIO_LIBRARIES}) | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| target_link_libraries(${target} ${OPENVDB_LIBRARIES}) | |||||
| endif() | |||||
| if(WITH_BOOST) | if(WITH_BOOST) | ||||
| target_link_libraries(${target} ${BOOST_LIBRARIES}) | target_link_libraries(${target} ${BOOST_LIBRARIES}) | ||||
| if(Boost_USE_STATIC_LIBS AND Boost_USE_ICU) | if(Boost_USE_STATIC_LIBS AND Boost_USE_ICU) | ||||
| target_link_libraries(${target} ${ICU_LIBRARIES}) | target_link_libraries(${target} ${ICU_LIBRARIES}) | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| target_link_libraries(${target} ${JPEG_LIBRARIES}) | target_link_libraries(${target} ${JPEG_LIBRARIES}) | ||||
| if(WITH_IMAGE_OPENEXR) | if(WITH_IMAGE_OPENEXR) | ||||
| ▲ Show 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | macro(SETUP_BLENDER_SORTED_LIBS) | ||||
| if(WITH_BULLET) | if(WITH_BULLET) | ||||
| list_insert_after(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_intern_rigidbody") | list_insert_after(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_intern_rigidbody") | ||||
| endif() | endif() | ||||
| if(WITH_BULLET AND NOT WITH_SYSTEM_BULLET) | if(WITH_BULLET AND NOT WITH_SYSTEM_BULLET) | ||||
| list_insert_after(BLENDER_SORTED_LIBS "ge_logic_ngnetwork" "extern_bullet") | list_insert_after(BLENDER_SORTED_LIBS "ge_logic_ngnetwork" "extern_bullet") | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| list(APPEND BLENDER_SORTED_LIBS bf_openvdb) | |||||
| endif() | |||||
| foreach(SORTLIB ${BLENDER_SORTED_LIBS}) | foreach(SORTLIB ${BLENDER_SORTED_LIBS}) | ||||
| set(REMLIB ${SORTLIB}) | set(REMLIB ${SORTLIB}) | ||||
| foreach(SEARCHLIB ${BLENDER_LINK_LIBS}) | foreach(SEARCHLIB ${BLENDER_LINK_LIBS}) | ||||
| if(${SEARCHLIB} STREQUAL ${SORTLIB}) | if(${SEARCHLIB} STREQUAL ${SORTLIB}) | ||||
| set(REMLIB "") | set(REMLIB "") | ||||
| endif() | endif() | ||||
| endforeach() | endforeach() | ||||
| if(REMLIB) | if(REMLIB) | ||||
| ▲ Show 20 Lines • Show All 752 Lines • Show Last 20 Lines | |||||