| 
									
										
										
										
											2012-02-12 06:38:53 +08:00
										 |  |  | # exclude certain files
 | 
					
						
							|  |  |  | # note the source dir on each 
 | 
					
						
							| 
									
										
										
										
											2014-02-13 14:34:31 +08:00
										 |  |  | set (tests_exclude "")
 | 
					
						
							| 
									
										
										
										
											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
 | 
					
						
							| 
									
										
										
										
											2013-05-21 06:23:04 +08:00
										 |  |  | 	# clang linker segfaults on large testSerializationSLAM 
 | 
					
						
							| 
									
										
										
										
											2014-02-13 14:34:31 +08:00
										 |  |  | 	list (APPEND tests_exclude "testSerializationSLAM.cpp") 
 | 
					
						
							| 
									
										
										
										
											2013-05-21 06:23:04 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-14 10:24:21 +08:00
										 |  |  | # Build tests
 | 
					
						
							| 
									
										
										
										
											2014-02-13 14:34:31 +08:00
										 |  |  | gtsamAddTestsGlob(tests "test*.cpp" "${tests_exclude}" "gtsam")
 | 
					
						
							| 
									
										
										
										
											2012-03-30 02:57:31 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-13 14:34:31 +08:00
										 |  |  | if(MSVC)
 | 
					
						
							|  |  |  | 	set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSLAM.cpp" | 
					
						
							|  |  |  | 		APPEND PROPERTY COMPILE_FLAGS "/bigobj")
 | 
					
						
							|  |  |  | endif()
 |