|
|
|
@ -37,27 +37,26 @@ if(NOT MATLAB_MEX_PATH)
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
IF (MATLAB_FOUND)
|
|
|
|
|
message(STATUS "Found MATLAB in ${MATLAB_ROOT}")
|
|
|
|
|
ENDIF(MATLAB_FOUND)
|
|
|
|
|
IF (OCTAVE_FOUND)
|
|
|
|
|
message(STATUS "Found OCTAVE in ${OCTAVE_INCLUDE_PATHS}")
|
|
|
|
|
ENDIF(OCTAVE_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF (MATLAB_FOUND OR OCTAVE_FOUND)
|
|
|
|
|
ADD_LIBRARY(srslte_mex SHARED mexutils.c)
|
|
|
|
|
INSTALL(TARGETS srslte_mex DESTINATION ${LIBRARY_DIR})
|
|
|
|
|
LIBLTE_SET_PIC(srslte_mex)
|
|
|
|
|
if(MATLAB_FOUND)
|
|
|
|
|
message(STATUS "Found MATLAB in ${MATLAB_ROOT}")
|
|
|
|
|
add_library(srslte_mex SHARED mexutils.c)
|
|
|
|
|
install(TARGETS srslte_mex DESTINATION ${LIBRARY_DIR})
|
|
|
|
|
liblte_set_pic(srslte_mex)
|
|
|
|
|
include_directories(${MATLAB_INCLUDE_DIR})
|
|
|
|
|
endif(MATLAB_FOUND)
|
|
|
|
|
|
|
|
|
|
if(OCTAVE_FOUND)
|
|
|
|
|
message(STATUS "Found OCTAVE in ${OCTAVE_INCLUDE_PATHS}")
|
|
|
|
|
add_library(srslte_mex SHARED mexutils.c)
|
|
|
|
|
install(TARGETS srslte_mex DESTINATION ${LIBRARY_DIR})
|
|
|
|
|
liblte_set_pic(srslte_mex)
|
|
|
|
|
include_directories(${OCTAVE_INCLUDE_DIR})
|
|
|
|
|
endif(OCTAVE_FOUND)
|
|
|
|
|
|
|
|
|
|
ELSEIF (MATLAB_FOUND OR OCTAVE_FOUND)
|
|
|
|
|
if(NOT MATLAB_FOUND)
|
|
|
|
|
if(NOT OCTAVE_FOUND)
|
|
|
|
|
message(STATUS "Could NOT find OCTAVE or MATLAB. MEX files won't be compiled")
|
|
|
|
|
ENDIF(MATLAB_FOUND OR OCTAVE_FOUND)
|
|
|
|
|
endif(NOT OCTAVE_FOUND)
|
|
|
|
|
endif(NOT MATLAB_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|