An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit a3c5e098 authored by Nick Laurenson's avatar Nick Laurenson
Browse files

Add darknet to Superbuild

parent 37d74b37
......@@ -87,6 +87,7 @@ function (superbuild_find_projects var)
flann
nanoflann
yaml
darknet
)
if (UNIX)
......@@ -203,12 +204,13 @@ list(APPEND superbuild_project_roots
set(_superbuild_default_cxx11 ON)
option(ENABLE_all "Enable all optional dependancy like pcl, ceres, opencv, ..." OFF)
option(ENABLE_all "Enable all optional dependancy like pcl, ceres, opencv, darknet, ..." OFF)
if (ENABLE_all)
set(ENABLE_opencv ON)
set(ENABLE_ceres ON)
set(ENABLE_pcl ON)
set(ENABLE_nanoflann ON)
set(ENABLE_opencv ON CACHE BOOL "enable OpenCV")
set(ENABLE_ceres ON CACHE BOOL "enable Ceres")
set(ENABLE_pcl ON CACHE BOOL "enable PCL")
set(ENABLE_nanoflann ON CACHE BOOL "enable nanoflann")
set(ENABLE_darknet ON CACHE BOOL "enable darknet")
endif(ENABLE_all)
add_subdirectory(common-superbuild)
superbuild_add_project(darknet
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND sed -i "s/GPU=0/GPU=1/g" Makefile # enable GPU
BUILD_COMMAND make
INSTALL_COMMAND cp libdarknet.so <INSTALL_DIR>/lib # copy lib
)
......@@ -77,3 +77,7 @@ superbuild_set_revision(nanoflann
superbuild_set_revision(yaml
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG yaml-cpp-0.6.2)
superbuild_set_revision(darknet
GIT_REPOSITORY https://github.com/pjreddie/darknet.git
GIT_TAG master)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment