Debian Codegraph @

src/filter/facedetect/CMakeLists.txt

raw
1 # facedetect filter - requires OpenCV (and protobuf)
2 # This filter can cause conflicts with applications that also use protobuf
3 # such as MLT, so it can be disabled with -DWITHOUT_FACERECOGNITION=ON
4
5 if (OpenCV_FOUND AND NOT WITHOUT_FACERECOGNITION)
6 set (SOURCES facedetect.cpp)
7 set (TARGET facedetect)
8
9 if (MSVC)
10 set (SOURCES ${SOURCES} ${FREI0R_DEF})
11 endif (MSVC)
12
13 include_directories(${OpenCV_INCLUDE_DIRS})
14 add_library (${TARGET} MODULE ${SOURCES})
15 set_target_properties (${TARGET} PROPERTIES PREFIX "")
16 target_link_libraries(${TARGET} ${OpenCV_LIBS})
17
18 install (TARGETS ${TARGET} LIBRARY DESTINATION ${LIBDIR})
19 endif()