Skip to content

Commit

Permalink
Install python binding headers when building with python modules
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh1002 committed Apr 12, 2024
1 parent c4b5143 commit 4e2f0f0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions openvdb/openvdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,15 @@ set(OPENVDB_LIBRARY_THREAD_INCLUDE_FILES
thread/Threading.h
)

if(OPENVDB_BUILD_PYTHON_MODULE)
set(OPENVDB_LIBRARY_PYTHON_INCLUDE_FILES
python/pyAccessor.h
python/pyGrid.h
python/pyTypeCasters.h
python/pyutil.h
)
endif()

##########################################################################

# Configure auto-generation of explicit template definition translation units
Expand Down Expand Up @@ -749,3 +758,7 @@ install(FILES ${OPENVDB_LIBRARY_TOOLS_INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL
install(FILES ${OPENVDB_LIBRARY_TREE_INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openvdb/tree)
install(FILES ${OPENVDB_LIBRARY_UTIL_INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openvdb/util)
install(FILES ${OPENVDB_LIBRARY_THREAD_INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openvdb/thread)

if(OPENVDB_BUILD_PYTHON_MODULE)
install(FILES ${OPENVDB_LIBRARY_PYTHON_INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openvdb/python)
endif()

0 comments on commit 4e2f0f0

Please sign in to comment.