Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/usd/CMakeLists.txt
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | elseif(APPLE) | ||||
| target_link_libraries(bf_usd INTERFACE -Wl,-force_load ${USD_LIBRARIES}) | target_link_libraries(bf_usd INTERFACE -Wl,-force_load ${USD_LIBRARIES}) | ||||
| elseif(UNIX) | elseif(UNIX) | ||||
| target_link_libraries(bf_usd INTERFACE "-Wl,--whole-archive ${USD_LIBRARIES} -Wl,--no-whole-archive ${TBB_LIBRARIES}") | target_link_libraries(bf_usd INTERFACE "-Wl,--whole-archive ${USD_LIBRARIES} -Wl,--no-whole-archive ${TBB_LIBRARIES}") | ||||
| else() | else() | ||||
| message(FATAL_ERROR "Unknown how to link USD with your compiler ${CMAKE_CXX_COMPILER_ID}") | message(FATAL_ERROR "Unknown how to link USD with your compiler ${CMAKE_CXX_COMPILER_ID}") | ||||
| endif() | endif() | ||||
| target_link_libraries(bf_usd INTERFACE ${TBB_LIBRARIES}) | target_link_libraries(bf_usd INTERFACE ${TBB_LIBRARIES}) | ||||
| if(WITH_GTESTS) | |||||
| set(TEST_SRC | |||||
| tests/usd_stage_creation_test.cc | |||||
| ) | |||||
| set(TEST_INC | |||||
| ) | |||||
| set(TEST_LIB | |||||
| ) | |||||
| include(GTestTesting) | |||||
| blender_add_test_lib(bf_io_usd_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB};${TEST_LIB}") | |||||
| endif() | |||||