diff --git a/openbr/plugins/dlib.cmake b/openbr/plugins/dlib.cmake index f122509..76a286c 100644 --- a/openbr/plugins/dlib.cmake +++ b/openbr/plugins/dlib.cmake @@ -1,11 +1,10 @@ set(BR_WITH_DLIB OFF CACHE BOOL "Build with LibLinear") -message(${BR_WITH_DLIB}) - if(${BR_WITH_DLIB}) find_package(DLib REQUIRED) + set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} plugins/dlib.cpp) - set(BR_THIRDPARTY_LIBS ${BR_THIRDPARTY_LIBS} ${DLib_LIBS}) + set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} ${DLib_DIR}/dlib/all/source.cpp) - install(DIRECTORY ${DLib_DIR}/models/ DESTINATION share/openbr/models/dlib) + #install(DIRECTORY ${DLib_DIR}/models/ DESTINATION share/openbr/models/dlib) endif()