Created
October 7, 2018 14:30
-
-
Save prabindh/6bb3c429b8e8347edcf9b5e0b2f54a20 to your computer and use it in GitHub Desktop.
CMake wrapper script for darknet-cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### 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