Skip to content

Commit

Permalink
Fix up timing and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert committed Feb 6, 2023
1 parent aac277d commit c6dd2bb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
12 changes: 6 additions & 6 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
set (excluded_examples
elaboratePoint2KalmanFilter.cpp
"elaboratePoint2KalmanFilter.cpp"
)

# if GTSAM_ENABLE_BOOST_SERIALIZATION is not set then SolverComparer.cpp will not compile
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
list (APPEND excluded_examples
SolverComparer.cpp
"SolverComparer.cpp"
)
endif()

# Add examples to exclude if GTSAM_USE_BOOST_FEATURES is not set
if (NOT GTSAM_USE_BOOST_FEATURES)
# add to excluded examples
list (APPEND excluded_examples
CombinedImuFactorsExample.run
ImuFactorsExample.run
ShonanAveragingCLI.cpp
SolverComparer.cpp
"CombinedImuFactorsExample.cpp"
"ImuFactorsExample.cpp"
"ShonanAveragingCLI.cpp"
"SolverComparer.cpp"
)
endif()

Expand Down
9 changes: 9 additions & 0 deletions gtsam_unstable/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
set (excluded_examples "")

# Add examples to exclude if GTSAM_USE_BOOST_FEATURES is not set
if (NOT GTSAM_USE_BOOST_FEATURES)
# add to excluded examples
list (APPEND excluded_examples
"GncPoseAveragingExample.cpp"
)
endif()


gtsamAddExamplesGlob("*.cpp" "${excluded_examples}" "gtsam_unstable")
13 changes: 10 additions & 3 deletions timing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
set (excluded_scripts
elaboratePoint2KalmanFilter.cpp
)
# Add scripts to exclude if GTSAM_ENABLE_BOOST_SERIALIZATION is not set
if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
# add to excluded scripts
list (APPEND excluded_scripts
"timeIncremental.cpp"
)
endif()

# Add scripts to exclude if GTSAM_USE_BOOST_FEATURES is not set
if (NOT GTSAM_USE_BOOST_FEATURES)
# add to excluded scripts
list (APPEND excluded_scripts
timeISAM2Chain.cpp
"timeISAM2Chain.cpp"
)
endif()


gtsamAddTimingGlob("*.cpp" excluded_scripts "gtsam")
gtsamAddTimingGlob("*.cpp" "${excluded_scripts}" "gtsam")

target_link_libraries(timeGaussianFactorGraph CppUnitLite)
1 change: 0 additions & 1 deletion timing/timeVirtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <iostream>

using namespace std;
using namespace boost;
using namespace gtsam;

struct Plain {
Expand Down
1 change: 0 additions & 1 deletion timing/timeVirtual2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <iostream>

using namespace std;
using namespace boost;
using namespace gtsam;

struct DtorTestBase {
Expand Down

0 comments on commit c6dd2bb

Please sign in to comment.