Skip to content

Commit

Permalink
Update cpp/mex/CMakeLists.txt
Browse files Browse the repository at this point in the history
fix OpenCV < 2.3.0
  • Loading branch information
uricamic committed Jul 30, 2012
1 parent d0ec574 commit 926517f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/mex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if(MEX_CMD AND MEXEXT_CMD)
COMMAND ${MEX_REAL_CMD}
ARGS -largeArrayDims
${CMAKE_CURRENT_SOURCE_DIR}/flandmark_detector_mex.cpp
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcvaux -o ${MEX_NAME_flandmark_detector}
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcv -lcvaux -o ${MEX_NAME_flandmark_detector}
DEPENDS flandmark_static ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME_flandmark_detector}_mex.cpp
COMMENT "Building MEX extension ${MEX_FILE_flandmark_detector}"
)
Expand All @@ -59,7 +59,7 @@ if(MEX_CMD AND MEXEXT_CMD)
COMMAND ${MEX_REAL_CMD}
ARGS -largeArrayDims
${CMAKE_CURRENT_SOURCE_DIR}/flandmark_detector_base_mex.cpp
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcvaux -o ${MEX_NAME_flandmark_detector_base}
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcv -lcvaux -o ${MEX_NAME_flandmark_detector_base}
DEPENDS flandmark_static ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME_flandmark_detector_base}_mex.cpp
COMMENT "Building MEX extension ${MEX_FILE_flandmark_detector_base}"
)
Expand All @@ -69,7 +69,7 @@ if(MEX_CMD AND MEXEXT_CMD)
COMMAND ${MEX_REAL_CMD}
ARGS -largeArrayDims
${CMAKE_CURRENT_SOURCE_DIR}/flandmark_load_model_mex.cpp
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark/ -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcvaux -o ${MEX_NAME_flandmark_load_model}
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark/ -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcv -lcvaux -o ${MEX_NAME_flandmark_load_model}
DEPENDS flandmark_static ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME_flandmark_load_model}_mex.cpp
COMMENT "Building MEX extension ${MEX_FILE_flandmark_load_model}"
)
Expand All @@ -93,7 +93,7 @@ if(MEX_CMD AND MEXEXT_CMD)
COMMAND ${MEX_REAL_CMD}
ARGS -largeArrayDims
${CMAKE_CURRENT_SOURCE_DIR}/getNormalizedFrame_mex.cpp
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark/ -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcvaux -o ${MEX_NAME_getNF}
-I${PROJECT_SOURCE_DIR}/cpp/libflandmark/ -I${OpenCV_INCLUDE} -L${PROJECT_BINARY_DIR}/cpp/libflandmark -lflandmark_static -lcxcore -lcv -lcvaux -o ${MEX_NAME_getNF}
DEPENDS flandmark_static ${CMAKE_CURRENT_SOURCE_DIR}/${MEX_NAME_getNF}_mex.cpp
COMMENT "Building MEX extension ${MEX_FILE_getNF}"
)
Expand Down

0 comments on commit 926517f

Please sign in to comment.