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
b41455fd
Commit
b41455fd
authored
Feb 27, 2017
by
Alain Vaucher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change minimum CMake version that supports the introduced features
parent
574446ae
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
28 additions
and
32 deletions
+28
-32
CMakeLists.txt
dlib/CMakeLists.txt
+13
-17
cmake
dlib/cmake
+1
-1
add_global_compiler_switch.cmake
dlib/cmake_utils/add_global_compiler_switch.cmake
+1
-1
tell_visual_studio_to_use_static_runtime.cmake
...make_utils/tell_visual_studio_to_use_static_runtime.cmake
+1
-1
CMakeLists.txt
dlib/cmake_utils/test_for_cpp11/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
+1
-1
use_cpp_11.cmake
dlib/cmake_utils/use_cpp_11.cmake
+1
-1
CMakeLists.txt
dlib/external/cblas/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/test/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/test/blas_bindings/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/test/tools/CMakeLists.txt
+1
-1
CMakeLists.txt
examples/CMakeLists.txt
+1
-1
CMakeLists.txt
tools/htmlify/CMakeLists.txt
+1
-1
CMakeLists.txt
tools/imglab/CMakeLists.txt
+1
-1
CMakeLists.txt
tools/python/CMakeLists.txt
+1
-1
No files found.
dlib/CMakeLists.txt
View file @
b41455fd
...
...
@@ -4,7 +4,7 @@
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
project
(
dlib
)
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
...
...
@@ -646,7 +646,12 @@ if (NOT TARGET dlib)
else
()
add_library
(
dlib STATIC
${
source_files
}
)
endif
()
target_link_libraries
(
dlib PRIVATE
${
dlib_needed_libraries
}
)
target_include_directories
(
dlib
INTERFACE $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/..>
INTERFACE $<INSTALL_INTERFACE:include>
PUBLIC
${
dlib_needed_includes
}
)
target_link_libraries
(
dlib PRIVATE
${
dlib_needed_libraries
}
)
if
(
UNIX AND NOT DLIB_IN_PROJECT_BUILD
)
if
(
DLIB_USE_CUDA
)
cuda_add_library
(
dlib_shared SHARED
${
source_files
}
)
...
...
@@ -655,7 +660,12 @@ if (NOT TARGET dlib)
add_library
(
dlib_shared SHARED
${
source_files
}
)
add_dependencies
(
dlib_shared dlib
)
endif
()
target_link_libraries
(
dlib_shared PRIVATE
${
dlib_needed_libraries
}
)
target_include_directories
(
dlib_shared
INTERFACE $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/..>
INTERFACE $<INSTALL_INTERFACE:include>
PUBLIC
${
dlib_needed_includes
}
)
target_link_libraries
(
dlib_shared PRIVATE
${
dlib_needed_libraries
}
)
endif
()
endif
()
##### end of if NOT DLIB_ISO_CPP_ONLY ##########################################################
...
...
@@ -665,20 +675,6 @@ if (NOT TARGET dlib)
ADD_LIBRARY
(
dlib_all_source_cpp STATIC all/source.cpp
)
endif
()
# Specify the include directory for CMake targets relying on dlib.
target_include_directories
(
dlib
INTERFACE $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/..>
INTERFACE $<INSTALL_INTERFACE:include>
PUBLIC
${
dlib_needed_includes
}
)
if
(
UNIX AND NOT DLIB_IN_PROJECT_BUILD
)
target_include_directories
(
dlib_shared
INTERFACE $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/..>
INTERFACE $<INSTALL_INTERFACE:include>
PUBLIC
${
dlib_needed_includes
}
)
endif
()
# Install the library
if
(
NOT DLIB_IN_PROJECT_BUILD
)
set
(
LIB_INSTALL_DIR lib CACHE STRING
"Install location of libraries (e.g. lib32 or lib64 for multilib installations)"
)
...
...
dlib/cmake
View file @
b41455fd
...
...
@@ -2,7 +2,7 @@
# It will trigger a compilation of dlib *in the project*
# including it
cmake_minimum_required(VERSION 2.8.
4
)
cmake_minimum_required(VERSION 2.8.
12
)
set(DLIB_IN_PROJECT_BUILD true)
...
...
dlib/cmake_utils/add_global_compiler_switch.cmake
View file @
b41455fd
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
# Make macros that can add compiler switches to the entire project. Not just
# to the current cmake folder being built.
...
...
dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
View file @
b41455fd
...
...
@@ -2,7 +2,7 @@
# Including this cmake script into your cmake project will cause visual studio
# to build your project against the static C runtime.
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
if
(
POLICY CMP0054
)
cmake_policy
(
SET CMP0054 NEW
)
endif
()
...
...
dlib/cmake_utils/test_for_cpp11/CMakeLists.txt
View file @
b41455fd
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
project
(
cpp11_test
)
# Try to enable C++11
...
...
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
View file @
b41455fd
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
project
(
cuda_test
)
include_directories
(
../../dnn
)
...
...
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
View file @
b41455fd
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
project
(
cudnn_test
)
include
(
../use_cpp_11.cmake
)
...
...
dlib/cmake_utils/use_cpp_11.cmake
View file @
b41455fd
...
...
@@ -2,7 +2,7 @@
# Also, it sets the COMPILER_CAN_DO_CPP_11 variable to 1 if it was successful.
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
# Don't rerun this script if its already been executed.
if
(
DEFINED COMPILER_CAN_DO_CPP_11
)
...
...
dlib/external/cblas/CMakeLists.txt
View file @
b41455fd
...
...
@@ -4,7 +4,7 @@
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
project
(
cblas
)
...
...
dlib/test/CMakeLists.txt
View file @
b41455fd
...
...
@@ -3,7 +3,7 @@
# information about it at http://www.cmake.org
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
# create a variable called target_name and set it to the string "dtest"
set
(
target_name dtest
)
...
...
dlib/test/blas_bindings/CMakeLists.txt
View file @
b41455fd
...
...
@@ -3,7 +3,7 @@
# information about it at http://www.cmake.org
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
# This variable contains a list of all the tests we are building
# into the regression test suite.
...
...
dlib/test/tools/CMakeLists.txt
View file @
b41455fd
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
add_subdirectory
(
../../../tools/imglab imglab_build
)
add_subdirectory
(
../../../tools/htmlify htmlify_build
)
examples/CMakeLists.txt
View file @
b41455fd
...
...
@@ -4,7 +4,7 @@
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
PROJECT
(
examples
)
...
...
tools/htmlify/CMakeLists.txt
View file @
b41455fd
...
...
@@ -3,7 +3,7 @@
# information about it at http://www.cmake.org
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
# create a variable called target_name and set it to the string "htmlify"
set
(
target_name htmlify
)
...
...
tools/imglab/CMakeLists.txt
View file @
b41455fd
...
...
@@ -3,7 +3,7 @@
# information about it at http://www.cmake.org
#
cmake_minimum_required
(
VERSION 2.8.
4
)
cmake_minimum_required
(
VERSION 2.8.
12
)
# create a variable called target_name and set it to the string "imglab"
set
(
target_name imglab
)
...
...
tools/python/CMakeLists.txt
View file @
b41455fd
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.
4
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.
12
)
set
(
USE_SSE4_INSTRUCTIONS ON CACHE BOOL
"Use SSE4 instructions"
)
...
...
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