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

23 lines
647 B
CMake
Raw Normal View History

macro_optional_find_package (Matlab OFF)
2017-07-30 22:24:00 +01:00
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
2017-09-06 01:17:43 +01:00
add_li (matlab matlab.c)
2014-12-14 12:05:43 +00:00
set_target_properties (matlab PROPERTIES prefix "")
include_directories (${MATLAB_INCLUDE_DIR})
target_link_libraries(matlab libYap $(MATLAB_LIBRARIES) )
install(TARGETS matlab
2017-12-05 15:14:57 +00:00
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR} )
2014-12-14 12:05:43 +00:00
endif (MATLAB_FOUND)