Skip to content

Commit

Permalink
Compiled openvdb_print now.
Browse files Browse the repository at this point in the history
  • Loading branch information
U-POLYGON\zhou committed Dec 25, 2013
1 parent 94871f9 commit 0010248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openvdb_2_1_0_library/openvdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ IF(DEFINED BUILD_UNITTEST AND BUILD_UNITTEST)
ADD_SUBDIRECTORY(unittest)
ENDIF()

ADD_SUBDIRECTORY(cmd)

INSTALL(TARGETS openvdb RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib)
INSTALL(FILES ${OPENVDB_HEADER_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/openvdb")
Expand Down
4 changes: 3 additions & 1 deletion openvdb_2_1_0_library/openvdb_maya/maya/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ IF(MSVC)
ADD_DEFINITIONS(-DNT_PLUGIN -DREQUIRE_IOSTREAM)
ENDIF()

FIND_PACKAGE(OpenGL)

FIND_PATH(MAYA_DIR REQUIRED)
SET(MAYA_INCLUDE_DIR "${MAYA_DIR}/include")
SET(MAYA_LIBRARY_DIR "${MAYA_DIR}/lib")
Expand All @@ -21,7 +23,7 @@ FILE(GLOB OPENVDBMAYA_HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
FILE(GLOB OPENVDBMAYA_SCRIPT_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.mel)

ADD_LIBRARY(OpenVDBMaya SHARED ${OPENVDBMAYA_SOURCE_FILES} ${OPENVDBMAYA_HEADER_FILES} ${OPENVDBMAYA_SCRIPT_FILES})
TARGET_LINK_LIBRARIES(OpenVDBMaya openvdb Half tbb ${ZLIB_LIBRARIES} OpenMayaUI Foundation OpenMaya OpenMayaFX OpenMayaRender glew32)
TARGET_LINK_LIBRARIES(OpenVDBMaya openvdb Half tbb ${ZLIB_LIBRARIES} OpenMayaUI Foundation OpenMaya OpenMayaFX OpenMayaRender glew32 ${OPENGL_LIBRARIES})

INSTALL(TARGETS OpenVDBMaya RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/plugins/maya/plugins")
INSTALL(FILES ${OPENVDBMAYA_SCRIPT_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/plugins/maya/scripts")

0 comments on commit 0010248

Please sign in to comment.