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
38a2846d
Commit
38a2846d
authored
Oct 16, 2017
by
Davis King
Browse files
More cmake cleanup
parent
6ffdf802
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
20 deletions
+21
-20
dlib/cmake_utils/add_python_module
dlib/cmake_utils/add_python_module
+1
-1
dlib/test/CMakeLists.txt
dlib/test/CMakeLists.txt
+1
-1
dlib/test/gui/CMakeLists.txt
dlib/test/gui/CMakeLists.txt
+5
-5
dlib/test/tools/CMakeLists.txt
dlib/test/tools/CMakeLists.txt
+1
-0
tools/convert_dlib_nets_to_caffe/CMakeLists.txt
tools/convert_dlib_nets_to_caffe/CMakeLists.txt
+3
-3
tools/htmlify/CMakeLists.txt
tools/htmlify/CMakeLists.txt
+5
-5
tools/imglab/CMakeLists.txt
tools/imglab/CMakeLists.txt
+5
-5
No files found.
dlib/cmake_utils/add_python_module
View file @
38a2846d
...
@@ -135,7 +135,7 @@ else()
...
@@ -135,7 +135,7 @@ else()
endif()
endif()
# include dlib so we can link against it
# include dlib so we can link against it
include
(${CMAKE_CURRENT_LIST_DIR}/..
/cmake
)
add_subdirectory
(${CMAKE_CURRENT_LIST_DIR}/..
dlib_build
)
# We put the extra _ on the end of the name just so it's possible to
# We put the extra _ on the end of the name just so it's possible to
...
...
dlib/test/CMakeLists.txt
View file @
38a2846d
...
@@ -12,7 +12,7 @@ PROJECT(${target_name})
...
@@ -12,7 +12,7 @@ PROJECT(${target_name})
# compile the dlib/all/source.cpp file into its own object just to make sure it compiles
# compile the dlib/all/source.cpp file into its own object just to make sure it compiles
set
(
DLIB_TEST_COMPILE_ALL_SOURCE_CPP ON
)
set
(
DLIB_TEST_COMPILE_ALL_SOURCE_CPP ON
)
include
(
../cmake
)
add_subdirectory
(
.. dlib_build
)
# This variable contains a list of all the tests we are building
# This variable contains a list of all the tests we are building
# into the regression test suite.
# into the regression test suite.
...
...
dlib/test/gui/CMakeLists.txt
View file @
38a2846d
...
@@ -6,15 +6,15 @@
...
@@ -6,15 +6,15 @@
# create a variable called target_name and set it to the string "test"
# create a variable called target_name and set it to the string "test"
set
(
target_name gui
)
set
(
target_name gui
)
PROJECT
(
${
target_name
}
)
project
(
${
target_name
}
)
add_subdirectory
(
../.. dlib_build
)
# add all the cpp files we want to compile to this list. This tells
# add all the cpp files we want to compile to this list. This tells
# cmake that they are part of our target (which is the executable named test)
# cmake that they are part of our target (which is the executable named test)
ADD_EXECUTABLE
(
${
target_name
}
main.cpp
)
add_executable
(
${
target_name
}
main.cpp
)
# Add the folder containing the dlib folder to the include path
INCLUDE_DIRECTORIES
(
../../..
)
# Tell cmake to link our target executable to dlib.
# Tell cmake to link our target executable to dlib.
TARGET_LINK_LIBRARIES
(
${
target_name
}
dlib
)
target_link_libraries
(
${
target_name
}
dlib
::dlib
)
dlib/test/tools/CMakeLists.txt
View file @
38a2846d
...
@@ -2,3 +2,4 @@ cmake_minimum_required(VERSION 2.8.12)
...
@@ -2,3 +2,4 @@ cmake_minimum_required(VERSION 2.8.12)
add_subdirectory
(
../../../tools/imglab imglab_build
)
add_subdirectory
(
../../../tools/imglab imglab_build
)
add_subdirectory
(
../../../tools/htmlify htmlify_build
)
add_subdirectory
(
../../../tools/htmlify htmlify_build
)
add_subdirectory
(
../../../tools/convert_dlib_nets_to_caffe convert_dlib_nets_to_caffe_build
)
tools/convert_dlib_nets_to_caffe/CMakeLists.txt
View file @
38a2846d
...
@@ -9,13 +9,13 @@ set (target_name dtoc)
...
@@ -9,13 +9,13 @@ set (target_name dtoc)
PROJECT
(
${
target_name
}
)
PROJECT
(
${
target_name
}
)
include
(
../../dlib/cmake
)
add_subdirectory
(
../../dlib dlib_build
)
ADD_EXECUTABLE
(
${
target_name
}
add_executable
(
${
target_name
}
main.cpp
main.cpp
)
)
TARGET_LINK_LIBRARIES
(
${
target_name
}
dlib::dlib
)
target_link_libraries
(
${
target_name
}
dlib::dlib
)
INSTALL
(
TARGETS
${
target_name
}
INSTALL
(
TARGETS
${
target_name
}
...
...
tools/htmlify/CMakeLists.txt
View file @
38a2846d
...
@@ -8,23 +8,23 @@ cmake_minimum_required(VERSION 2.8.12)
...
@@ -8,23 +8,23 @@ cmake_minimum_required(VERSION 2.8.12)
# create a variable called target_name and set it to the string "htmlify"
# create a variable called target_name and set it to the string "htmlify"
set
(
target_name htmlify
)
set
(
target_name htmlify
)
PROJECT
(
${
target_name
}
)
project
(
${
target_name
}
)
include
(
../../dlib/cmake
)
add_subdirectory
(
../../dlib dlib_build
)
# add all the cpp files we want to compile to this list. This tells
# add all the cpp files we want to compile to this list. This tells
# cmake that they are part of our target (which is the executable named htmlify)
# cmake that they are part of our target (which is the executable named htmlify)
ADD_EXECUTABLE
(
${
target_name
}
add_executable
(
${
target_name
}
htmlify.cpp
htmlify.cpp
to_xml.cpp
to_xml.cpp
)
)
# Tell cmake to link our target executable to dlib.
# Tell cmake to link our target executable to dlib.
TARGET_LINK_LIBRARIES
(
${
target_name
}
dlib::dlib
)
target_link_libraries
(
${
target_name
}
dlib::dlib
)
INSTALL
(
TARGETS
${
target_name
}
install
(
TARGETS
${
target_name
}
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
)
)
...
...
tools/imglab/CMakeLists.txt
View file @
38a2846d
...
@@ -9,11 +9,11 @@ cmake_minimum_required(VERSION 2.8.12)
...
@@ -9,11 +9,11 @@ cmake_minimum_required(VERSION 2.8.12)
set
(
target_name imglab
)
set
(
target_name imglab
)
PROJECT
(
${
target_name
}
)
PROJECT
(
${
target_name
}
)
include
(
../../dlib/cmake
)
add_subdirectory
(
../../dlib dlib_build
)
# add all the cpp files we want to compile to this list. This tells
# add all the cpp files we want to compile to this list. This tells
# cmake that they are part of our target (which is the executable named imglab)
# cmake that they are part of our target (which is the executable named imglab)
ADD_EXECUTABLE
(
${
target_name
}
add_executable
(
${
target_name
}
src/main.cpp
src/main.cpp
src/metadata_editor.h
src/metadata_editor.h
src/metadata_editor.cpp
src/metadata_editor.cpp
...
@@ -30,11 +30,11 @@ ADD_EXECUTABLE(${target_name}
...
@@ -30,11 +30,11 @@ ADD_EXECUTABLE(${target_name}
# Tell cmake to link our target executable to dlib.
# Tell cmake to link our target executable to dlib.
TARGET_LINK_LIBRARIES
(
${
target_name
}
dlib::dlib
)
target_link_libraries
(
${
target_name
}
dlib::dlib
)
INSTALL
(
TARGETS
${
target_name
}
install
(
TARGETS
${
target_name
}
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
)
)
INSTALL
(
PROGRAMS convert_imglab_paths_to_relative copy_imglab_dataset DESTINATION bin
)
install
(
PROGRAMS convert_imglab_paths_to_relative copy_imglab_dataset DESTINATION bin
)
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