Skip to content

Commit 7ed4887

Browse files
committed
Made MATLAB connector optional
1 parent 10ada9c commit 7ed4887

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ option(REGENERATE_DOC
3535
"Enable if you want to regenerate doc need kde4"
3636
OFF)
3737

38+
option(MATLAB_CONNECTOR
39+
"Enable if you want to MATLAB connector support (Unimplemented)"
40+
OFF)
41+
3842
if(APPLE)
3943
option(APPBUNDLE
4044
"Enable this if you want to produce an .app bundle."
@@ -92,15 +96,18 @@ endif(WITH_CEREBUS)
9296
################################################################################
9397
# MATLAB SDK config
9498
################################################################################
95-
find_package(Matlab REQUIRED)
99+
if(MATLAB_CONNECTOR)
100+
find_package(Matlab REQUIRED)
101+
102+
IF(MATLAB_FOUND)
103+
message(STATUS "MATLAB Found, MATLAB MEX will be compiled.")
104+
INCLUDE_DIRECTORIES(${MATLAB_INCLUDE_DIR})
105+
#add_subdirectory(src)
106+
ELSE(MATLAB_FOUND)
107+
MESSAGE("MATLAB not found...nothing will be built.")
108+
ENDIF(MATLAB_FOUND)
96109

97-
IF(MATLAB_FOUND)
98-
message(STATUS "MATLAB Found, MATLAB MEX will be compiled.")
99-
INCLUDE_DIRECTORIES(${MATLAB_INCLUDE_DIR})
100-
#add_subdirectory(src)
101-
ELSE(MATLAB_FOUND)
102-
MESSAGE("MATLAB not found...nothing will be built.")
103-
ENDIF(MATLAB_FOUND)
110+
ENDIF(MATLAB_CONNECTOR)
104111

105112

106113
################################################################################

0 commit comments

Comments
 (0)