-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,11 @@ SET(CMAKE_BUILD_TYPE Release CACHE STRING | |
PROJECT(ceres_tutorial_exercises) | ||
|
||
FIND_PACKAGE(Ceres REQUIRED) | ||
FIND_PACKAGE(gflags REQUIRED) | ||
|
||
INCLUDE_DIRECTORIES(${CERES_INCLUDE_DIRS}) | ||
|
||
ADD_EXECUTABLE(curve_fitting curve_fitting.cc read_matrix.cc) | ||
TARGET_LINK_LIBRARIES(curve_fitting ${CERES_LIBRARIES} ${GFLAG_LIBRARIES}) | ||
TARGET_LINK_LIBRARIES(curve_fitting ${CERES_LIBRARIES} gflags) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mleotta
Author
Owner
|
||
|
||
ADD_EXECUTABLE(bundle_adjuster ba_file.cc bundle_adjuster.cc) | ||
TARGET_LINK_LIBRARIES(bundle_adjuster ${CERES_LIBRARIES} ${GFLAG_LIBRARIES}) | ||
TARGET_LINK_LIBRARIES(bundle_adjuster ${CERES_LIBRARIES} gflags) |
1 comment
on commit 0dd6693
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi - gflags isn't in ${CERES_LIBRARIES} as Ceres itself never directly depends on gflags (it usually depends on glog which might in turn depend on gflags), only some of the examples that ship with Ceres depend on gflags.
There is a FindGflags that ships with Ceres (in /cmake) that works with gflags installs without exported CMake configurations if it's helpful.
@mleotta I was thinking that ${CERES_LIBRARIES} already contains the gflags library if it is a dependency.