Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
39327e71
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "2f9a70aa852d84adaa17a824454bf6d28180b55a"
Commit
39327e71
authored
Oct 24, 2019
by
Davis King
Browse files
Added note about using cmake's new fetch content feature.
parent
9d3e0864
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
examples/CMakeLists.txt
examples/CMakeLists.txt
+11
-0
No files found.
examples/CMakeLists.txt
View file @
39327e71
...
...
@@ -42,6 +42,17 @@ project(examples)
# cmake needs is the dlib source code folder and it will take care of everything.
add_subdirectory
(
../dlib dlib_build
)
# If you have cmake 3.11 or newer you can even use FetchContent instead of
# add_subdirectory() to pull in dlib as a dependency. So instead of using the
# above add_subdirectory() command, you could use the following three commands
# to make dlib available:
# include(FetchContent)
# FetchContent_Declare(dlib
# GIT_REPOSITORY https://github.com/davisking/dlib.git
# GIT_TAG v19.18
# )
# FetchContent_MakeAvailable(dlib)
# The next thing we need to do is tell CMake about the code you want to
# compile. We do this with the add_executable() statement which takes the name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment