| 
									
										
										
										
											2012-02-12 06:38:53 +08:00
										 |  |  | # exclude certain files
 | 
					
						
							|  |  |  | # note the source dir on each 
 | 
					
						
							| 
									
										
										
										
											2023-02-06 17:31:56 +08:00
										 |  |  | set (excluded_tests "")
 | 
					
						
							| 
									
										
										
										
											2012-02-12 06:38:53 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-16 22:33:02 +08:00
										 |  |  | if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") # might not be best test - Richard & Jason & Frank
 | 
					
						
							| 
									
										
										
										
											2022-02-21 21:00:15 +08:00
										 |  |  | 	# clang linker segfaults on large testSerializationSlam 
 | 
					
						
							| 
									
										
										
										
											2023-02-06 17:31:56 +08:00
										 |  |  | 	list (APPEND excluded_tests "testSerializationSlam.cpp") 
 | 
					
						
							| 
									
										
										
										
											2013-05-21 06:23:04 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-01-24 09:33:42 +08:00
										 |  |  | if (NOT GTSAM_USE_BOOST_FEATURES)
 | 
					
						
							| 
									
										
										
										
											2023-02-06 17:31:56 +08:00
										 |  |  | 	list(APPEND excluded_tests "testGraph.cpp")
 | 
					
						
							| 
									
										
										
										
											2023-01-24 09:33:42 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-06 11:16:49 +08:00
										 |  |  | if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
 | 
					
						
							| 
									
										
										
										
											2023-06-22 22:46:21 +08:00
										 |  |  | 	list(APPEND excluded_tests "testSerializationSlam.cpp")
 | 
					
						
							| 
									
										
										
										
											2023-02-06 11:16:49 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-14 10:24:21 +08:00
										 |  |  | # Build tests
 | 
					
						
							| 
									
										
										
										
											2023-02-06 17:31:56 +08:00
										 |  |  | gtsamAddTestsGlob(tests "test*.cpp" "${excluded_tests}" "gtsam")
 | 
					
						
							| 
									
										
										
										
											2012-03-30 02:57:31 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-13 14:34:31 +08:00
										 |  |  | if(MSVC)
 | 
					
						
							| 
									
										
										
										
											2022-02-21 21:00:15 +08:00
										 |  |  | 	set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSlam.cpp" | 
					
						
							| 
									
										
										
										
											2014-02-13 14:34:31 +08:00
										 |  |  | 		APPEND PROPERTY COMPILE_FLAGS "/bigobj")
 | 
					
						
							|  |  |  | endif()
 |