commit
						508b5fd6b3
					
				| 
						 | 
				
			
			@ -1,4 +1,8 @@
 | 
			
		|||
cmake_minimum_required(VERSION 3.0)
 | 
			
		||||
cmake_minimum_required(VERSION 3.5)
 | 
			
		||||
cmake_policy(SET CMP0082 NEW) # install from sub-directories immediately
 | 
			
		||||
cmake_policy(SET CMP0102 NEW) # set policy on advanced variables and cmake cache
 | 
			
		||||
cmake_policy(SET CMP0156 NEW) # new linker strategies
 | 
			
		||||
cmake_policy(SET CMP0167 OLD) # Don't complain about boost
 | 
			
		||||
 | 
			
		||||
# Set the version number for the library
 | 
			
		||||
set (GTSAM_VERSION_MAJOR 4)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -25,7 +25,7 @@ endif()
 | 
			
		|||
set(BOOST_FIND_MINIMUM_VERSION 1.65)
 | 
			
		||||
set(BOOST_FIND_MINIMUM_COMPONENTS serialization system filesystem thread program_options date_time timer chrono regex)
 | 
			
		||||
 | 
			
		||||
find_package(Boost ${BOOST_FIND_MINIMUM_VERSION} COMPONENTS ${BOOST_FIND_MINIMUM_COMPONENTS})
 | 
			
		||||
find_package(Boost ${BOOST_FIND_MINIMUM_VERSION} COMPONENTS ${BOOST_FIND_MINIMUM_COMPONENTS} REQUIRED)
 | 
			
		||||
 | 
			
		||||
# Required components
 | 
			
		||||
if(NOT Boost_SERIALIZATION_LIBRARY OR NOT Boost_SYSTEM_LIBRARY OR NOT Boost_FILESYSTEM_LIBRARY OR
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
# This file shows how to build and link a user project against GTSAM using CMake
 | 
			
		||||
###################################################################################
 | 
			
		||||
# To create your own project, replace "example" with the actual name of your project
 | 
			
		||||
cmake_minimum_required(VERSION 3.0)
 | 
			
		||||
cmake_minimum_required(VERSION 3.5)
 | 
			
		||||
project(example CXX)
 | 
			
		||||
 | 
			
		||||
# Find GTSAM, either from a local build, or from a Debian/Ubuntu package.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue