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
50c10994
Commit
50c10994
authored
Oct 17, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yet more cmake cleanup
parent
d832a576
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CMakeLists.txt
dlib/java/CMakeLists.txt
+1
-2
cmake_swig_jni
dlib/java/cmake_swig_jni
+3
-0
No files found.
dlib/java/CMakeLists.txt
View file @
50c10994
...
...
@@ -5,7 +5,6 @@ set(java_package_name net.dlib)
set
(
source_files
)
include
(
../cmake_utils/use_cpp_11.cmake
)
include
(
../cmake_utils/release_build_by_default
)
include_directories
(
...
...
@@ -13,7 +12,7 @@ include_directories(
)
# Additional dependencies
#
include(../../dlib/cmake
)
#
add_subdirectory(../../dlib dlib_build
)
#set(additional_link_libraries dlib::dlib)
# Tell swig to put the output files (the shared library and .jar) into the local folder.
...
...
dlib/java/cmake_swig_jni
View file @
50c10994
...
...
@@ -42,6 +42,8 @@
cmake_minimum_required (VERSION 2.8.12)
include(../cmake_utils/use_cpp_11.cmake)
# 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
# executable.
...
...
@@ -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)
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})
swig_link_libraries(${output_library_name} ${additional_link_libraries})
...
...
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