Commit 5df31e748eff331680671431c2d6d4ba391088c3

Authored by Scott Klum
1 parent a8aad620

Better dlib compilation

Showing 1 changed file with 3 additions and 4 deletions
openbr/plugins/dlib.cmake
1 set(BR_WITH_DLIB OFF CACHE BOOL "Build with LibLinear") 1 set(BR_WITH_DLIB OFF CACHE BOOL "Build with LibLinear")
2 2
3 -message(${BR_WITH_DLIB})  
4 -  
5 if(${BR_WITH_DLIB}) 3 if(${BR_WITH_DLIB})
6 find_package(DLib REQUIRED) 4 find_package(DLib REQUIRED)
  5 +
7 set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} plugins/dlib.cpp) 6 set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} plugins/dlib.cpp)
8 - set(BR_THIRDPARTY_LIBS ${BR_THIRDPARTY_LIBS} ${DLib_LIBS}) 7 + set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} ${DLib_DIR}/dlib/all/source.cpp)
9 8
10 - install(DIRECTORY ${DLib_DIR}/models/ DESTINATION share/openbr/models/dlib) 9 + #install(DIRECTORY ${DLib_DIR}/models/ DESTINATION share/openbr/models/dlib)
11 endif() 10 endif()