Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
eos
Commits
66a712dd
Commit
66a712dd
authored
8 years ago
by
Patrik Huber
Browse files
Options
Downloads
Patches
Plain Diff
Added CMake option BUILD_CERES_EXAMPLE
parent
6931b61d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-0
2 additions, 0 deletions
CMakeLists.txt
examples/CMakeLists.txt
+11
-8
11 additions, 8 deletions
examples/CMakeLists.txt
initial_cache.cmake.template
+1
-0
1 addition, 0 deletions
initial_cache.cmake.template
with
14 additions
and
8 deletions
CMakeLists.txt
+
2
−
0
View file @
66a712dd
...
...
@@ -54,6 +54,8 @@ endif()
message
(
STATUS
"Options:"
)
option
(
BUILD_EXAMPLES
"Build the example applications."
ON
)
message
(
STATUS
"BUILD_EXAMPLES:
${
BUILD_EXAMPLES
}
"
)
option
(
BUILD_CERES_EXAMPLE
"Build the fit-model-ceres example (requires Ceres)."
OFF
)
message
(
STATUS
"BUILD_CERES_EXAMPLE:
${
BUILD_CERES_EXAMPLE
}
"
)
option
(
BUILD_UTILS
"Build utility applications."
OFF
)
message
(
STATUS
"BUILD_UTILS:
${
BUILD_UTILS
}
"
)
option
(
BUILD_DOCUMENTATION
"Build the library documentation."
OFF
)
...
...
This diff is collapsed.
Click to expand it.
examples/CMakeLists.txt
+
11
−
8
View file @
66a712dd
...
...
@@ -33,18 +33,21 @@ if(MSVC)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/bigobj"
)
endif
()
# Find Ceres, for the fit-model-ceres app:
find_package
(
Ceres REQUIRED
)
message
(
STATUS
"Ceres locations: Headers:
${
CERES_INCLUDE_DIRS
}
Library:
${
CERES_LIBRARIES
}
"
)
include_directories
(
${
CERES_INCLUDE_DIRS
}
)
# Model fitting (affine cam & shape to landmarks) example:
add_executable
(
fit-model fit-model.cpp
)
target_link_libraries
(
fit-model
${
OpenCV_LIBS
}
${
Boost_LIBRARIES
}
)
# Single and multi-image non-linear model fitting with Ceres example:
add_executable
(
fit-model-ceres fit-model-ceres.cpp
)
target_link_libraries
(
fit-model-ceres
${
CERES_LIBRARIES
}
${
OpenCV_LIBS
}
${
Boost_LIBRARIES
}
)
if
(
BUILD_CERES_EXAMPLE
)
# Find Ceres, for the fit-model-ceres app:
find_package
(
Ceres REQUIRED
)
message
(
STATUS
"Ceres locations: Headers:
${
CERES_INCLUDE_DIRS
}
Library:
${
CERES_LIBRARIES
}
"
)
include_directories
(
${
CERES_INCLUDE_DIRS
}
)
# Single and multi-image non-linear model fitting with Ceres example:
add_executable
(
fit-model-ceres fit-model-ceres.cpp
)
target_link_libraries
(
fit-model-ceres
${
CERES_LIBRARIES
}
${
OpenCV_LIBS
}
${
Boost_LIBRARIES
}
)
install
(
TARGETS fit-model-ceres DESTINATION bin
)
endif
()
# Generate random samples from the model:
add_executable
(
generate-obj generate-obj.cpp
)
...
...
This diff is collapsed.
Click to expand it.
initial_cache.cmake.template
+
1
−
0
View file @
66a712dd
...
...
@@ -23,5 +23,6 @@
# Configuration options
# ==============================
set(BUILD_EXAMPLES ON CACHE BOOL "Build the example applications." FORCE)
set(BUILD_CERES_EXAMPLE OFF CACHE BOOL "Build the fit-model-ceres example (requires Ceres)." FORCE)
set(BUILD_UTILS OFF CACHE BOOL "Build utility applications." FORCE)
set(BUILD_DOCUMENTATION OFF CACHE BOOL "Build the library documentation." FORCE)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment