|
|
@ -30,6 +30,7 @@ endif()
|
|
|
|
# SOURCE = list of source files
|
|
|
|
# SOURCE = list of source files
|
|
|
|
# LIBRARIES = libraries needed to link mex library
|
|
|
|
# LIBRARIES = libraries needed to link mex library
|
|
|
|
FUNCTION(BuildMex)
|
|
|
|
FUNCTION(BuildMex)
|
|
|
|
|
|
|
|
if(NOT DisableMEX)
|
|
|
|
set(oneValueArgs MEXNAME)
|
|
|
|
set(oneValueArgs MEXNAME)
|
|
|
|
set(multiValueArgs SOURCES LIBRARIES)
|
|
|
|
set(multiValueArgs SOURCES LIBRARIES)
|
|
|
|
cmake_parse_arguments(BuildMex "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
|
|
|
cmake_parse_arguments(BuildMex "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
|
|
@ -57,5 +58,6 @@ FUNCTION(BuildMex)
|
|
|
|
target_link_libraries(${BuildMex_MEXNAME}-oct ${BuildMex_LIBRARIES} ${OCTAVE_LIBRARIES})
|
|
|
|
target_link_libraries(${BuildMex_MEXNAME}-oct ${BuildMex_LIBRARIES} ${OCTAVE_LIBRARIES})
|
|
|
|
install(TARGETS ${BuildMex_MEXNAME}-oct DESTINATION "${MEX_DIR}/srslte/")
|
|
|
|
install(TARGETS ${BuildMex_MEXNAME}-oct DESTINATION "${MEX_DIR}/srslte/")
|
|
|
|
endif (OCTAVE_FOUND)
|
|
|
|
endif (OCTAVE_FOUND)
|
|
|
|
|
|
|
|
endif (NOT DisableMEX)
|
|
|
|
ENDFUNCTION(BuildMex)
|
|
|
|
ENDFUNCTION(BuildMex)
|
|
|
|
|
|
|
|
|
|
|
|