Skip to content

Commit

Permalink
Port to OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
nyue committed Aug 22, 2016
1 parent bf701e3 commit dc3851f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
26 changes: 16 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,22 @@ ELSEIF ( BUILD_MTOA_TOOLS )
INCLUDE_DIRECTORIES ( ${ARNOLD_INCLUDE_DIR} )
INCLUDE_DIRECTORIES ( ${MTOA_INCLUDE_DIR} )
SET ( MTOA_REQUIRED_LIBRARIES
${MtoA_mtoa_api_LIBRARY}
${Arnold_ai_LIBRARY}
${MAYA_OpenMayaAnim_LIBRARY}
${MAYA_OpenMayaRender_LIBRARY}
${MAYA_OpenMaya_LIBRARY}
${MAYA_Foundation_LIBRARY}
)

SET ( CMAKE_INSTALL_RPATH "${MAYA_LOCATION}/lib:${MAYA_LOCATION}/lib" )

${MtoA_mtoa_api_LIBRARY}
${Arnold_ai_LIBRARY}
${MAYA_OpenMayaAnim_LIBRARY}
${MAYA_OpenMayaRender_LIBRARY}
${MAYA_OpenMaya_LIBRARY}
${MAYA_Foundation_LIBRARY}
)
IF (APPLE)
SET ( CMAKE_SKIP_BUILD_RPATH FALSE)
SET ( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
SET ( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
SET ( CMAKE_INSTALL_RPATH "${ARNOLD_LOCATION}/bin:${MTOA_LOCATION}/bin" )
MESSAGE ( "CMAKE_INSTALL_RPATH ${ARNOLD_LOCATION}/bin:${MTOA_LOCATION}/bin" )
ELSE ()
SET ( CMAKE_INSTALL_RPATH "${MAYA_LOCATION}/lib:${MTOA_LOCATION}/lib" )
ENDIF()
ADD_SUBDIRECTORY ( maya/mtoa )
ELSEIF ( BUILD_3DFM_TOOLS )
ENDIF()
2 changes: 1 addition & 1 deletion maya/mtoa/translator/nCacheTranslator.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <translators/DagTranslator.h>
// #include <translators/DagTranslator.h>
#include <translators/shape/ShapeTranslator.h>
#include <ai.h>

Expand Down

0 comments on commit dc3851f

Please sign in to comment.