24 lines
		
	
	
		
			699 B
		
	
	
	
		
			CMake
		
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			699 B
		
	
	
	
		
			CMake
		
	
	
| set (excluded_examples
 | |
|     "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"
 | |
|   )
 | |
| 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.cpp"
 | |
|       "ImuFactorsExample.cpp"
 | |
|       "ShonanAveragingCLI.cpp"
 | |
|       "SolverComparer.cpp"
 | |
|       )
 | |
| endif()
 | |
| 
 | |
| gtsamAddExamplesGlob("*.cpp" "${excluded_examples}" "gtsam;${Boost_PROGRAM_OPTIONS_LIBRARY}" ${GTSAM_BUILD_EXAMPLES_ALWAYS})
 |