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.
yap-6.3/library/matlab/CMakeLists.txt
Vitor Santos Costa b9c84ab7e9 cmake
2017-09-06 01:17:43 +01:00

23 lines
619 B
CMake

macro_optional_find_package (Matlab OFF)
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
add_li (matlab matlab.c)
set_target_properties (matlab PROPERTIES prefix "")
include_directories (${MATLAB_INCLUDE_DIR})
target_link_libraries(matlab libYap $(MATLAB_LIBRARIES) )
install(TARGETS matlab
RUNTIME DESTINATION ${dlls}
ARCHIVE DESTINATION ${dlls} )
endif (MATLAB_FOUND)