Skip to content

Commit

Permalink
Fixed binding issues for opencv effects
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennoCaldato committed Oct 28, 2020
1 parent a9274df commit 4c6f9ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bindings/python/CMakeLists.txt
Expand Up @@ -54,6 +54,16 @@ if (CMAKE_VERSION VERSION_LESS 3.12)
"${PROJECT_BINARY_DIR}/src")
endif()

################ OPENCV ##################
find_package( OpenCV 4 )
if (OpenCV_FOUND)
message("\nCOMPILING WITH OPENCV\n")
set(CMAKE_SWIG_FLAGS "-DUSE_OPENCV=1")
add_definitions( -DUSE_OPENCV=1 )
else()
message("\nOPENCV NOT FOUND, SOME FUNCTIONALITIES WILL BE DISABLED\n")
endif()

### Enable C++ in SWIG
set_property(SOURCE openshot.i PROPERTY CPLUSPLUS ON)
set_property(SOURCE openshot.i PROPERTY SWIG_MODULE_NAME openshot)
Expand Down

0 comments on commit 4c6f9ff

Please sign in to comment.