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
2b9b3fef
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "4c2c8f93ddcb41e362ad97306cd83b38b5449e56"
Commit
2b9b3fef
authored
Oct 17, 2017
by
Davis King
Browse files
merged
parents
aa1a3b86
88d0bdec
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
15 deletions
+20
-15
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+8
-4
dlib/java/CMakeLists.txt
dlib/java/CMakeLists.txt
+1
-2
dlib/java/cmake_swig_jni
dlib/java/cmake_swig_jni
+3
-0
dlib/matlab/CMakeLists.txt
dlib/matlab/CMakeLists.txt
+6
-6
dlib/matlab/cmake_mex_wrapper
dlib/matlab/cmake_mex_wrapper
+2
-3
No files found.
dlib/CMakeLists.txt
View file @
2b9b3fef
...
@@ -32,10 +32,14 @@ if(has_parent)
...
@@ -32,10 +32,14 @@ if(has_parent)
endif
()
endif
()
endif
()
endif
()
# Set only because there are old target_link_libraries() statements in the
if
(
CMAKE_VERSION VERSION_LESS
"3.9.0"
)
# FindCUDA.cmake file that comes with CMake that error out if the new behavior
# Set only because there are old target_link_libraries() statements in the
# is used.
# FindCUDA.cmake file that comes with CMake that error out if the new behavior
cmake_policy
(
SET CMP0023 OLD
)
# is used. In newer versions of CMake we can instead set CUDA_LINK_LIBRARIES_KEYWORD which fixes this issue.
cmake_policy
(
SET CMP0023 OLD
)
else
()
set
(
CUDA_LINK_LIBRARIES_KEYWORD PUBLIC
)
endif
()
macro
(
enable_preprocessor_switch option_name
)
macro
(
enable_preprocessor_switch option_name
)
...
...
dlib/java/CMakeLists.txt
View file @
2b9b3fef
...
@@ -5,7 +5,6 @@ set(java_package_name net.dlib)
...
@@ -5,7 +5,6 @@ set(java_package_name net.dlib)
set
(
source_files
set
(
source_files
)
)
include
(
../cmake_utils/use_cpp_11.cmake
)
include
(
../cmake_utils/release_build_by_default
)
include
(
../cmake_utils/release_build_by_default
)
include_directories
(
include_directories
(
...
@@ -13,7 +12,7 @@ include_directories(
...
@@ -13,7 +12,7 @@ include_directories(
)
)
# Additional dependencies
# Additional dependencies
#
include(../../dlib/cmake
)
#
add_subdirectory(../../dlib dlib_build
)
#set(additional_link_libraries dlib::dlib)
#set(additional_link_libraries dlib::dlib)
# Tell swig to put the output files (the shared library and .jar) into the local folder.
# Tell swig to put the output files (the shared library and .jar) into the local folder.
...
...
dlib/java/cmake_swig_jni
View file @
2b9b3fef
...
@@ -42,6 +42,8 @@
...
@@ -42,6 +42,8 @@
cmake_minimum_required (VERSION 2.8.12)
cmake_minimum_required (VERSION 2.8.12)
include(${CMAKE_CURRENT_LIST_DIR}/../cmake_utils/use_cpp_11.cmake)
# This block of code tries to figure out what the JAVA_HOME environment
# This block of code tries to figure out what the JAVA_HOME environment
# variable should be by looking at the folder that contains the java
# variable should be by looking at the folder that contains the java
# executable.
# executable.
...
@@ -178,6 +180,7 @@ FILE(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${binary_dir_name}")
...
@@ -178,6 +180,7 @@ FILE(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${binary_dir_name}")
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/swig.i PROPERTIES CPLUSPLUS ON)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/swig.i PROPERTIES CPLUSPLUS ON)
swig_add_module(${output_library_name} java ${CMAKE_CURRENT_BINARY_DIR}/swig.i ${source_files})
swig_add_module(${output_library_name} java ${CMAKE_CURRENT_BINARY_DIR}/swig.i ${source_files})
enable_cpp11_for_target(${output_library_name})
include_directories(${JNI_INCLUDE_DIRS})
include_directories(${JNI_INCLUDE_DIRS})
swig_link_libraries(${output_library_name} ${additional_link_libraries})
swig_link_libraries(${output_library_name} ${additional_link_libraries})
...
...
dlib/matlab/CMakeLists.txt
View file @
2b9b3fef
cmake_minimum_required
(
VERSION 2.8.1
1
)
cmake_minimum_required
(
VERSION 2.8.1
2
)
PROJECT
(
mex_functions
)
PROJECT
(
mex_functions
)
include
(
cmake_mex_wrapper
)
include
(
cmake_mex_wrapper
)
include
(
../cmake
)
add_subdirectory
(
.. dlib_build
)
# Compile the example_mex_function.cpp file and link it to dlib. Note
# Compile the example_mex_function.cpp file and link it to dlib. Note
# that you can give a list of things to link to here. E.g.
# that you can give a list of things to link to here. E.g.
# add_mex_function(some_other_mex_function pthread dlib fftw)
# add_mex_function(some_other_mex_function pthread dlib fftw)
add_mex_function
(
example_mex_function dlib
)
add_mex_function
(
example_mex_function
dlib::
dlib
)
add_mex_function
(
example_mex_callback dlib
)
add_mex_function
(
example_mex_callback
dlib::
dlib
)
add_mex_function
(
example_mex_struct dlib
)
add_mex_function
(
example_mex_struct
dlib::
dlib
)
add_mex_function
(
example_mex_class dlib
)
add_mex_function
(
example_mex_class
dlib::
dlib
)
dlib/matlab/cmake_mex_wrapper
View file @
2b9b3fef
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# that additional library dependencies can be added like this: add_mex_function(name lib1 dlib libetc).
# that additional library dependencies can be added like this: add_mex_function(name lib1 dlib libetc).
# That is, just add more libraries after the name and they will be build into the mex file.
# That is, just add more libraries after the name and they will be build into the mex file.
cmake_minimum_required(VERSION 2.8.1
1
)
cmake_minimum_required(VERSION 2.8.1
2
)
set(BUILDING_MATLAB_MEX_FILE true)
set(BUILDING_MATLAB_MEX_FILE true)
set(CMAKE_POSITION_INDEPENDENT_CODE True)
set(CMAKE_POSITION_INDEPENDENT_CODE True)
...
@@ -57,8 +57,7 @@ INCLUDE_DIRECTORIES("${dlib_matlab_binding_path}")
...
@@ -57,8 +57,7 @@ INCLUDE_DIRECTORIES("${dlib_matlab_binding_path}")
# Also add dlib to the include search path
# Also add dlib to the include search path
INCLUDE_DIRECTORIES(${dlib_matlab_binding_path}/../..)
INCLUDE_DIRECTORIES(${dlib_matlab_binding_path}/../..)
include(${dlib_matlab_binding_path}/../cmake_utils/add_global_compiler_switch.cmake)
add_definitions(-DMATLAB_MEX_FILE)
add_global_define(MATLAB_MEX_FILE)
# Determine the path to our CMakeLists.txt file. This is the file that
# Determine the path to our CMakeLists.txt file. This is the file that
# includeded the one you are reading right now. So here we make it so that
# includeded the one you are reading right now. So here we make it so that
...
...
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