Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
5da316ff
Commit
5da316ff
authored
Mar 01, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
57534130
2ee6a87d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
CMakeLists.txt
CMakeLists.txt
+2
-0
CMakeLists.txt
dlib/CMakeLists.txt
+8
-7
No files found.
CMakeLists.txt
0 → 100644
View file @
5da316ff
cmake_minimum_required
(
VERSION 2.8.4
)
add_subdirectory
(
dlib
)
dlib/CMakeLists.txt
View file @
5da316ff
...
...
@@ -132,6 +132,13 @@ if (NOT TARGET dlib)
stack_trace.cpp
)
set
(
dlib_needed_libraries
)
if
(
UNIX
)
set
(
CMAKE_THREAD_PREFER_PTHREAD ON
)
find_package
(
Threads REQUIRED
)
set
(
dlib_needed_libraries
${
dlib_needed_libraries
}
${
CMAKE_THREAD_LIBS_INIT
}
)
endif
()
# we want to link to the right stuff depending on our platform.
if
(
WIN32 AND NOT CYGWIN
)
###############################################################################
if
(
DLIB_NO_GUI_SUPPORT
)
...
...
@@ -140,9 +147,6 @@ if (NOT TARGET dlib)
set
(
dlib_needed_libraries ws2_32 winmm comctl32 gdi32 imm32
)
endif
()
elseif
(
APPLE
)
############################################################################
find_library
(
pthreadlib pthread
)
set
(
dlib_needed_libraries
${
pthreadlib
}
)
if
(
NOT DLIB_NO_GUI_SUPPORT
)
find_package
(
X11 QUIET
)
if
(
X11_FOUND
)
...
...
@@ -178,9 +182,6 @@ if (NOT TARGET dlib)
mark_as_advanced
(
pthreadlib xlib xlib_path x11_path
)
else
()
##################################################################################
find_library
(
pthreadlib pthread
)
set
(
dlib_needed_libraries
${
pthreadlib
}
)
# link to the nsl library if it exists. this is something you need sometimes
find_library
(
nsllib nsl
)
if
(
nsllib
)
...
...
@@ -431,7 +432,7 @@ if (NOT TARGET dlib)
ARCHIVE DESTINATION lib
)
endif
()
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/ DESTINATION include/dlib
install
(
DIRECTORY
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/ DESTINATION include/dlib
FILES_MATCHING PATTERN
"*.h"
REGEX
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
EXCLUDE
)
...
...
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