-
Notifications
You must be signed in to change notification settings - Fork 135
OpenVDB and Alembic reader #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,19 @@ set_target_properties(partio PROPERTIES | |
| POSITION_INDEPENDENT_CODE ON | ||
| SOVERSION ${PARTIO_VERSION_MAJOR}) | ||
|
|
||
| set(TBB_INCLUDE_DIRS "$ENV{TBB_ROOT}/include") | ||
| set(CMAKE_MODULE_PATH "$ENV{OpenVDB_ROOT}/lib/cmake/OpenVDB" | ||
| "${OpenVDB_ROOT}/lib/cmake/OpenVDB" | ||
| ${CMAKE_MODULE_PATH}) | ||
| find_package(OpenVDB COMPONENTS openvdb) | ||
| find_package(Alembic) | ||
| find_package(Boost) | ||
| find_package(TBB) | ||
|
|
||
|
|
||
| target_link_libraries(partio PRIVATE Alembic::Alembic OpenVDB::openvdb) | ||
| target_include_directories(partio PRIVATE ${TBB_INCLUDE_DIRS}) | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now partio has a really minimal set of dependencies. Since these are new dependencies it would be good to ease into them. Can we please make these opt-in and not built by default? I would suggest adding some TBB is needed for openvb so we can bundle those settings alongside |
||
| target_include_directories(partio | ||
| PUBLIC | ||
| $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMAKE_MODULE_PATHusually shouldn't need to be modified. If you setCMAKE_PREFIX_PATHto include theOpenVDB_ROOTthen in theoryfind_package(OpenVDB)should work without needing to special-case openvdb here.