Show
Ignore:
Timestamp:
07/02/09 22:16:11 (15 years ago)
Author:
smidl
Message:

clean up of bdmdir mex - merger is now in one .cpp file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/system/SetBdmEnv.cmake

    r406 r407  
    100100        INCLUDE_DIRECTORIES(${MATLAB_INCLUDE_DIR} "${BDM_SOURCE_DIR}/bdm") 
    101101        LINK_DIRECTORIES("${BDM_SOURCE_DIR}/bdm") 
    102         ADD_LIBRARY(${FN} MODULE ${FN}.cpp) 
    103         set_target_properties(${FN} PROPERTIES 
     102        ADD_LIBRARY("${FN}.${MATLAB_MEX_SUFFIX}" MODULE ${FN}.cpp) 
     103        set_target_properties("${FN}.${MATLAB_MEX_SUFFIX}" PROPERTIES 
    104104                PREFIX "" 
    105                 SUFFIX  ${MATLAB_MEX_SUFFIX} 
     105                SUFFIX ""  
     106                COMPILE_FLAGS "-DMEX" 
    106107        ) 
    107         TARGET_LINK_LIBRARIES(${FN} ${MATLAB_LIBRARIES} bdm itpp) 
     108        TARGET_LINK_LIBRARIES("${FN}.${MATLAB_MEX_SUFFIX}" ${MATLAB_LIBRARIES} bdm itpp) 
    108109ENDMACRO(MEX)