From 5df31e748eff331680671431c2d6d4ba391088c3 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 16 Feb 2015 14:59:50 -0500 Subject: [PATCH] Better dlib compilation --- openbr/plugins/dlib.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() -- libgit2 0.21.4