Changeset 415 for library/system
- Timestamp:
- 07/14/09 18:23:57 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/system/SetBdmEnv.cmake
r413 r415 25 25 INCLUDE(\\system\\win32\\local_paths.txt OPTIONAL) 26 26 ADD_DEFINITIONS(-DHAVE_ACML) 27 ADD_DEFINITIONS(/wd4290) 28 ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) 27 29 ENDIF(WIN32) 28 30 IF(APPLE) … … 101 103 INCLUDE_DIRECTORIES(${MATLAB_INCLUDE_DIR} "${BDM_SOURCE_DIR}/bdm") 102 104 LINK_DIRECTORIES("${BDM_SOURCE_DIR}/bdm") 105 IF(WIN32) 106 ADD_DEFINITIONS(/EXPORT:_mexFunction) 107 ENDIF(WIN32) 103 108 ADD_LIBRARY("${FN}.${MATLAB_MEX_SUFFIX}" MODULE ${FN}.cpp) 104 109 set_target_properties("${FN}.${MATLAB_MEX_SUFFIX}" PROPERTIES … … 107 112 COMPILE_FLAGS "-DMEX" 108 113 ) 114 # general libraries 109 115 TARGET_LINK_LIBRARIES("${FN}.${MATLAB_MEX_SUFFIX}" ${MATLAB_LIBRARIES} bdm itpp) 116 # platform specific libraries 117 IF(WIN32) 118 target_link_libraries ("${FN}.${MATLAB_MEX_SUFFIX}" libacml_dll) 119 ELSE(WIN32) 120 IF(APPLE) 121 target_link_libraries ("${FN}.${MATLAB_MEX_SUFFIX}" ${FRAMEWORK_VECLIB}) 122 ENDIF(APPLE) 123 ENDIF(WIN32) 124 ## Additional libraries can be added to a macro 125 target_link_libraries ("${FN}.${MATLAB_MEX_SUFFIX}" ${ARGN}) 110 126 ENDIF(MEX_COMPILER) 111 127 ENDMACRO(MEX)