Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Matlab static interface generation
Matlab static generation was not generated as stated in #1777 This patch would not be possible without the help of @yage99 !
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
include_directories(${MATLAB_INCLUDE_DIR}) | ||
|
||
add_library(matlab_static SHARED MatlabInterface.cpp) | ||
target_link_libraries(matlab_static shogun ${MATLAB_LIBRARIES}) | ||
ADD_CUSTOM_TARGET(matlab_static ALL | ||
COMMAND "${MATLAB_ROOT}/bin/mex" -o sg -I${CMAKE_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/MatlabInterface.cpp $<TARGET_SONAME_FILE:shogun> | ||
DEPENDS shogun | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMENT "Compiling MATLAB static interface") |