Skip to content

Instantly share code, notes, and snippets.

@prabindh
Created October 7, 2018 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabindh/6bb3c429b8e8347edcf9b5e0b2f54a20 to your computer and use it in GitHub Desktop.
Save prabindh/6bb3c429b8e8347edcf9b5e0b2f54a20 to your computer and use it in GitHub Desktop.
CMake wrapper script for darknet-cpp
###
### CMake wrapper script for building darknet-cpp as ExternalProject
###
### Platforms supported: Only Linux, perhaps Mac. Windows not supported.
### Refer to the darknet/Makefile for the GPU/OPENCV flag options
### Options have to be set in the darknet/Makefile before invoking this script.
### All requirements (CUDA, CUDNN) need to be installed before invoking this script.
###
### Read https://github.com/prabindh/darknet for further details on build
###
cmake_minimum_required (VERSION 3.5.0)
project(darknet-cpp)
include(ExternalProject)
ExternalProject_Add(
darknet-cpp
#Comment this if fresh download is not required
#GIT_REPOSITORY http://github.com/prabindh/darknet.git
SOURCE_DIR darknet
BINARY_DIR darknet
CONFIGURE_COMMAND ""
# Change this to other build targets as in makefile (darknet, darknet-cpp, darknet-cpp-shared)
BUILD_COMMAND make darknet-cpp
INSTALL_COMMAND ""
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment