Commit 240aef404179f7db90b558a5f483ee360ed8076c
1 parent
778e6e58
Even better way to compile
Showing
1 changed file
with
2 additions
and
0 deletions
openbr/plugins/dlib.cmake
| @@ -3,6 +3,8 @@ set(BR_WITH_DLIB OFF CACHE BOOL "Build with DLib") | @@ -3,6 +3,8 @@ set(BR_WITH_DLIB OFF CACHE BOOL "Build with DLib") | ||
| 3 | if(${BR_WITH_DLIB}) | 3 | if(${BR_WITH_DLIB}) |
| 4 | find_package(DLib REQUIRED) | 4 | find_package(DLib REQUIRED) |
| 5 | 5 | ||
| 6 | + add_definitions(-DDLIB_NO_GUI_SUPPORT) | ||
| 7 | + | ||
| 6 | set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} plugins/dlib.cpp) | 8 | set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} plugins/dlib.cpp) |
| 7 | set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} ${DLib_DIR}/dlib/all/source.cpp) | 9 | set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} ${DLib_DIR}/dlib/all/source.cpp) |
| 8 | 10 |