Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
01bf9676
Commit
01bf9676
authored
Jan 30, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'devel' into matlab-bindings
parents
95814643
550449fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
25 deletions
+27
-25
CMakeLists.txt
CMakeLists.txt
+21
-19
examples/CMakeLists.txt
examples/CMakeLists.txt
+1
-1
matlab/CMakeLists.txt
matlab/CMakeLists.txt
+4
-4
python/CMakeLists.txt
python/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
01bf9676
...
...
@@ -50,16 +50,18 @@ endif()
find_package
(
Boost 1.50.0 COMPONENTS system REQUIRED
)
message
(
STATUS
"Boost found at
${
Boost_INCLUDE_DIRS
}
"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/cmake
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/cmake
)
find_package
(
Eigen3 REQUIRED
)
message
(
STATUS
"Eigen3 found:
${
EIGEN3_FOUND
}
, version:
${
EIGEN3_VERSION
}
"
)
message
(
STATUS
"Eigen3 include dir found at
${
EIGEN3_INCLUDE_DIR
}
"
)
set
(
eos_3RDPARTY_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/3rdparty"
)
# this is used by the CMakeLists.txt files in the subdirectories
# Set the include directories of the 3rd-party submodules that we use:
set
(
CEREAL_INCLUDE_DIR
"
${
CMAKE_SOURCE_DIR
}
/3rdparty
/cereal-1.1.1/include"
)
set
(
glm_INCLUDE_DIR
"
${
CMAKE_SOURCE_DIR
}
/3rdparty
/glm"
)
set
(
nanoflann_INCLUDE_DIR
"
${
CMAKE_SOURCE_DIR
}
/3rdparty
/nanoflann/include"
)
set
(
eigen3_nnls_INCLUDE_DIR
"
${
CMAKE_SOURCE_DIR
}
/3rdparty
/eigen3-nnls/src"
)
set
(
CEREAL_INCLUDE_DIR
"
${
eos_3RDPARTY_DIR
}
/cereal-1.1.1/include"
)
set
(
glm_INCLUDE_DIR
"
${
eos_3RDPARTY_DIR
}
/glm"
)
set
(
nanoflann_INCLUDE_DIR
"
${
eos_3RDPARTY_DIR
}
/nanoflann/include"
)
set
(
eigen3_nnls_INCLUDE_DIR
"
${
eos_3RDPARTY_DIR
}
/eigen3-nnls/src"
)
# Header files of the eos library:
set
(
HEADERS
...
...
@@ -125,16 +127,16 @@ source_group(render\\detail REGULAR_EXPRESSION include/eos/render/detail/*)
source_group
(
video REGULAR_EXPRESSION include/eos/video/*
)
# The eos install target:
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/include/ DESTINATION include
)
# our library headers
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/share/ DESTINATION share
)
# the model and metadata
install
(
DIRECTORY
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/include/ DESTINATION include
)
# our library headers
install
(
DIRECTORY
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/share/ DESTINATION share
)
# the model and metadata
# For 3rd party headers, we only copy the headers and licence files:
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/3rdparty
/cereal-1.1.1/ DESTINATION 3rdparty/cereal-1.1.1
)
# cereal headers
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/3rdparty
/glm/glm/ DESTINATION 3rdparty/glm/glm
)
# glm headers
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/3rdparty
/glm/copying.txt DESTINATION 3rdparty/glm/
)
# glm licence
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/3rdparty
/nanoflann/include/ DESTINATION 3rdparty/nanoflann/include
)
# nanoflann header
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/3rdparty
/nanoflann/COPYING DESTINATION 3rdparty/nanoflann/
)
# nanoflann licence
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/3rdparty
/eigen3-nnls/src/ DESTINATION 3rdparty/eigen3-nnls/src
)
# eigen3-nnls header
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/3rdparty
/eigen3-nnls/README.md DESTINATION 3rdparty/eigen3-nnls/
)
# eigen3-nnls attribution
install
(
DIRECTORY
${
eos_3RDPARTY_DIR
}
/cereal-1.1.1/ DESTINATION 3rdparty/cereal-1.1.1
)
# cereal headers
install
(
DIRECTORY
${
eos_3RDPARTY_DIR
}
/glm/glm/ DESTINATION 3rdparty/glm/glm
)
# glm headers
install
(
FILES
${
eos_3RDPARTY_DIR
}
/glm/copying.txt DESTINATION 3rdparty/glm/
)
# glm licence
install
(
DIRECTORY
${
eos_3RDPARTY_DIR
}
/nanoflann/include/ DESTINATION 3rdparty/nanoflann/include
)
# nanoflann header
install
(
FILES
${
eos_3RDPARTY_DIR
}
/nanoflann/COPYING DESTINATION 3rdparty/nanoflann/
)
# nanoflann licence
install
(
DIRECTORY
${
eos_3RDPARTY_DIR
}
/eigen3-nnls/src/ DESTINATION 3rdparty/eigen3-nnls/src
)
# eigen3-nnls header
install
(
FILES
${
eos_3RDPARTY_DIR
}
/eigen3-nnls/README.md DESTINATION 3rdparty/eigen3-nnls/
)
# eigen3-nnls attribution
if
(
EOS_BUILD_EXAMPLES
)
add_subdirectory
(
examples
)
...
...
@@ -149,16 +151,16 @@ if(EOS_BUILD_DOCUMENTATION)
endif
()
if
(
EOS_GENERATE_PYTHON_BINDINGS
)
set
(
PYBIND11_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/3rdparty
/pybind11"
)
set
(
PYBIND11_PATH
"
${
eos_3RDPARTY_DIR
}
/pybind11"
)
# If this fails, the repo has probably not been cloned with submodules. Run: git submodule update --init
add_subdirectory
(
${
PYBIND11_PATH
}
)
# add and initialise pybind11
add_subdirectory
(
python
)
# the actual bindings
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/3rdparty
/pybind11/include/ DESTINATION 3rdparty/pybind11/include
)
# pybind11 headers
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/3rdparty
/pybind11/LICENSE DESTINATION 3rdparty/pybind11/
)
# pybind11 licence
install
(
DIRECTORY
${
eos_3RDPARTY_DIR
}
/pybind11/include/ DESTINATION 3rdparty/pybind11/include
)
# pybind11 headers
install
(
FILES
${
eos_3RDPARTY_DIR
}
/pybind11/LICENSE DESTINATION 3rdparty/pybind11/
)
# pybind11 licence
endif
()
if
(
EOS_GENERATE_MATLAB_BINDINGS
)
add_subdirectory
(
matlab
)
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/3rdparty
/mexplus/include/ DESTINATION 3rdparty/mexplus/include
)
# mexplus headers
install
(
FILES
${
CMAKE_SOURCE_DIR
}
/3rdparty
/mexplus/LICENSE DESTINATION 3rdparty/mexplus/
)
# mexplus licence
install
(
DIRECTORY
${
eos_3RDPARTY_DIR
}
/mexplus/include/ DESTINATION 3rdparty/mexplus/include
)
# mexplus headers
install
(
FILES
${
eos_3RDPARTY_DIR
}
/mexplus/LICENSE DESTINATION 3rdparty/mexplus/
)
# mexplus licence
endif
()
examples/CMakeLists.txt
View file @
01bf9676
...
...
@@ -52,4 +52,4 @@ target_link_libraries(generate-obj eos ${OpenCV_LIBS} ${Boost_LIBRARIES})
install
(
TARGETS fit-model-simple DESTINATION bin
)
install
(
TARGETS fit-model DESTINATION bin
)
install
(
TARGETS generate-obj DESTINATION bin
)
install
(
DIRECTORY
${
CMAKE_
SOURCE_DIR
}
/examples
/data DESTINATION bin
)
install
(
DIRECTORY
${
CMAKE_
CURRENT_SOURCE_DIR
}
/data DESTINATION bin
)
matlab/CMakeLists.txt
View file @
01bf9676
...
...
@@ -40,9 +40,9 @@ matlab_add_mex(
#[...]
)
target_include_directories
(
eos-matlab-fitting PRIVATE
${
CMAKE_SOURCE_DIR
}
/3rdparty/mexplus/include
${
CMAKE_SOURCE_DIR
}
/matlab
/include
)
target_include_directories
(
eos-matlab-fitting PRIVATE
${
eos_3RDPARTY_DIR
}
/mexplus/include
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
install
(
FILES
${
CMAKE_
SOURCE_DIR
}
/matlab
/demo.m DESTINATION matlab
)
install
(
DIRECTORY
${
CMAKE_
SOURCE_DIR
}
/matlab
/include DESTINATION matlab
)
install
(
DIRECTORY
${
CMAKE_
SOURCE_DIR
}
/matlab
/+eos DESTINATION matlab PATTERN
"*.cpp"
EXCLUDE
)
install
(
FILES
${
CMAKE_
CURRENT_SOURCE_DIR
}
/demo.m DESTINATION matlab
)
install
(
DIRECTORY
${
CMAKE_
CURRENT_SOURCE_DIR
}
/include DESTINATION matlab
)
install
(
DIRECTORY
${
CMAKE_
CURRENT_SOURCE_DIR
}
/+eos DESTINATION matlab PATTERN
"*.cpp"
EXCLUDE
)
install
(
TARGETS eos-matlab-fitting DESTINATION matlab/+eos/+fitting/private
)
python/CMakeLists.txt
View file @
01bf9676
...
...
@@ -26,4 +26,4 @@ target_link_libraries(python-bindings PRIVATE eos ${OpenCV_LIBS} ${Boost_LIBRARI
set_target_properties
(
python-bindings PROPERTIES OUTPUT_NAME eos
)
install
(
TARGETS python-bindings DESTINATION python
)
install
(
FILES
${
CMAKE_
SOURCE_DIR
}
/python
/demo.py DESTINATION python
)
install
(
FILES
${
CMAKE_
CURRENT_SOURCE_DIR
}
/demo.py DESTINATION python
)
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