This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2014-12-04 07:59:30 +00:00
|
|
|
macro_optional_find_package (Matlab OFF)
|
|
|
|
macro_log_feature (MATLAB_FOUND "matlab"
|
2014-12-14 12:05:43 +00:00
|
|
|
"MATLAB A Language for Technical Computing"
|
2014-12-04 07:59:30 +00:00
|
|
|
"http://matlab.com")
|
|
|
|
if (MATLAB_FOUND)
|
|
|
|
# MATLAB_INCLUDE_DIR: include path for mex.h, engine.h
|
|
|
|
# MATLAB_LIBRARIES: required libraries: libmex, etc
|
|
|
|
# MATLAB_MEX_LIBRARY: path to libmex.lib
|
|
|
|
# MATLAB_MX_LIBRARY: path to libmx.lib
|
|
|
|
# MATLAB_ENG_LIBRARY: path to libeng.lib
|
2014-12-14 12:05:43 +00:00
|
|
|
|
|
|
|
add_library (matlab SHARED matlab.c)
|
|
|
|
|
|
|
|
set_target_properties (matlab PROPERTIES prefix "")
|
|
|
|
|
|
|
|
include_directories (${MATLAB_INCLUDE_DIR})
|
|
|
|
target_link_libraries(matlab libYap $(MATLAB_LIBRARIES) )
|
|
|
|
|
|
|
|
install(TARGETS matlab
|
2017-02-20 15:28:46 +00:00
|
|
|
RUNTIME DESTINATION ${dlls}
|
2016-01-20 22:25:25 +00:00
|
|
|
ARCHIVE DESTINATION ${dlls} )
|
2014-12-14 12:05:43 +00:00
|
|
|
|
2014-12-04 07:59:30 +00:00
|
|
|
endif (MATLAB_FOUND)
|
|
|
|
|