| 
									
										
										
										
											2011-12-14 10:24:19 +08:00
										 |  |  | # Build/install CppUnitLite
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-30 04:32:05 +08:00
										 |  |  | file(GLOB cppunitlite_headers "*.h")
 | 
					
						
							|  |  |  | file(GLOB cppunitlite_src "*.cpp")
 | 
					
						
							| 
									
										
										
										
											2011-12-14 10:24:19 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-06-11 22:52:05 +08:00
										 |  |  | add_library(CppUnitLite STATIC ${cppunitlite_src} ${cppunitlite_headers})
 | 
					
						
							| 
									
										
										
										
											2012-06-20 06:06:40 +08:00
										 |  |  | list(APPEND GTSAM_EXPORTED_TARGETS CppUnitLite)
 | 
					
						
							|  |  |  | set(GTSAM_EXPORTED_TARGETS "${GTSAM_EXPORTED_TARGETS}" PARENT_SCOPE)
 | 
					
						
							| 
									
										
										
										
											2019-10-07 17:21:22 +08:00
										 |  |  | target_link_libraries(CppUnitLite PUBLIC Boost::boost) # boost/lexical_cast.h
 | 
					
						
							| 
									
										
										
										
											2011-12-14 10:24:19 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-06-04 21:44:02 +08:00
										 |  |  | gtsam_assign_source_folders("${cppunitlite_headers};${cppunitlite_src}") # MSVC project structure
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-01 03:59:15 +08:00
										 |  |  | option(GTSAM_INSTALL_CPPUNITLITE "Enable/Disable installation of CppUnitLite library" ON)
 | 
					
						
							|  |  |  | if (GTSAM_INSTALL_CPPUNITLITE)
 | 
					
						
							|  |  |  |     install(FILES ${cppunitlite_headers} DESTINATION include/CppUnitLite)
 | 
					
						
							| 
									
										
										
										
											2012-06-20 06:06:40 +08:00
										 |  |  |     install(TARGETS CppUnitLite EXPORT GTSAM-exports ARCHIVE DESTINATION lib)
 | 
					
						
							| 
									
										
										
										
											2012-02-01 03:59:15 +08:00
										 |  |  | endif(GTSAM_INSTALL_CPPUNITLITE)
 |