forked from AlexeyAB/darknet
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AlexeyAB#2536 from cenit/dev/cenit/cmakeConfig
improve darknet library handling for downstream projects, other small updates
- Loading branch information
Showing
11 changed files
with
317 additions
and
97 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Config file for the Darknet package | ||
# It defines the following variables | ||
# Darknet_INCLUDE_DIRS - include directories for Darknet | ||
# Darknet_LIBRARIES - libraries to link against | ||
|
||
# Compute paths | ||
get_filename_component(Darknet_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
set(Darknet_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@") | ||
|
||
include(CMakeFindDependencyMacro) | ||
|
||
find_dependency(OpenCV REQUIRED) | ||
|
||
if(@ENABLE_CUDA@) | ||
find_dependency(CUDNN) | ||
endif() | ||
|
||
set(CMAKE_THREAD_PREFER_PTHREAD ON) | ||
find_dependency(Threads) | ||
|
||
if(@MSVC@) | ||
find_dependency(PThreads_windows) | ||
endif() | ||
|
||
if("@CMAKE_VERSION@" VERSION_GREATER "3.9.0") | ||
find_dependency(OpenMP) | ||
endif() | ||
|
||
# Our library dependencies (contains definitions for IMPORTED targets) | ||
include("${Darknet_CMAKE_DIR}/DarknetTargets.cmake") | ||
|
||
# These are IMPORTED targets created by DarknetTargets.cmake | ||
set(Darknet_LIBRARIES darklib) |
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
Oops, something went wrong.