Changeset 662 for library/system
- Timestamp:
- 10/15/09 12:07:25 (15 years ago)
- Location:
- library/system
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/system/FindMatlab.cmake
r592 r662 64 64 65 65 FILE(GLOB _auto_matlab_prefixes "/usr/local/matlab*" "/opt/matlab*" "~/bin" ${MATLAB_ROOT}) 66 IF(APPLE) 67 FILE(GLOB _auto_matlab_prefixes "/Applications/MATLAB*") 68 ENDIF(APPLE) 66 69 67 70 IF(CMAKE_SIZEOF_VOID_P EQUAL 4) … … 73 76 SET(MATLAB_MEX_SUFFIX mexa64) 74 77 ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4) 78 79 IF(APPLE) 80 SET(_matlab_path_suffixes "bin/maci") 81 SET(MATLAB_MEX_SUFFIX mexmaci) 82 ENDIF(APPLE) 75 83 76 84 SET(_libmex_name "mex") … … 116 124 ENDFOREACH(_matlab_prefix) 117 125 126 # APPLE has system libmx.dylib which is prefrred over the matlab one -- hard code Matlab 127 IF(APPLE) 128 SET(MATLAB_MX_LIBRARY "${_matlab_libdir}/libmx.dylib") 129 ENDIF(APPLE) 130 118 131 SET(MATLAB_LIBRARIES 119 132 ${MATLAB_MEX_LIBRARY} … … 125 138 SET(MATLAB_FOUND 1) 126 139 MESSAGE(STATUS "Found Matlab arch ${MATLAB_MEX_SUFFIX} at ${MATLAB_INCLUDE_DIR}") 140 IF(APPLE) 141 MESSAGE(STATUS "MX at ${MATLAB_MX_LIBRARY}") 142 ENDIF(APPLE) 143 127 144 ELSE(MATLAB_INCLUDE_DIR AND MATLAB_LIBRARIES) 128 145 MESSAGE(STATUS "Matlab not found") -
library/system/SetBdmEnv.cmake
r623 r662 30 30 IF(APPLE) 31 31 IF(NOT ITPP_DIR) 32 SET(ITPP_DIR "${BDM_SOURCE_DIR}/ macosx/itpp-4.0.6")32 SET(ITPP_DIR "${BDM_SOURCE_DIR}/system/macosx/itpp-4.0.6") 33 33 ENDIF(NOT ITPP_DIR) 34 34 FIND_LIBRARY(FRAMEWORK_VECLIB vecLib) … … 51 51 FIND_PACKAGE(ACML COMPONENTS) 52 52 FIND_PACKAGE(Matlab COMPONENTS) 53 FIND_PROGRAM(MEX_COMPILER mex)54 53 55 54 IF(ITPP_FOUND) … … 122 121 123 122 MACRO(MEX FN) 124 IF(M EX_COMPILER)123 IF(MATLAB_FOUND) 125 124 INCLUDE_DIRECTORIES(${MATLAB_INCLUDE_DIR} "${BDM_SOURCE_DIR}/bdm") 126 125 LINK_DIRECTORIES("${BDM_SOURCE_DIR}/bdm") 126 IF(APPLE) 127 LINK_DIRECTORIES("/Applications/MATLAB_R2007b/bin/maci/") 128 ENDIF(APPLE) 127 129 IF(WIN32) 128 130 ADD_LIBRARY("${FN}.${MATLAB_MEX_SUFFIX}" MODULE ${FN}.cpp "${BDM_SOURCE_DIR}/system/mexFunction.def") … … 148 150 ## Additional libraries can be added to a macro 149 151 target_link_libraries ("${FN}.${MATLAB_MEX_SUFFIX}" ${ARGN}) 150 ENDIF(M EX_COMPILER)152 ENDIF(MATLAB_FOUND) 151 153 ENDMACRO(MEX)