17 lines
		
	
	
		
			699 B
		
	
	
	
		
			CMake
		
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			699 B
		
	
	
	
		
			CMake
		
	
	
| # Build/install CppUnitLite
 | |
| 
 | |
| file(GLOB cppunitlite_headers "*.h")
 | |
| file(GLOB cppunitlite_src "*.cpp")
 | |
| 
 | |
| add_library(CppUnitLite STATIC ${cppunitlite_src} ${cppunitlite_headers})
 | |
| list(APPEND GTSAM_EXPORTED_TARGETS CppUnitLite)
 | |
| set(GTSAM_EXPORTED_TARGETS "${GTSAM_EXPORTED_TARGETS}" PARENT_SCOPE)
 | |
| 
 | |
| gtsam_assign_source_folders("${cppunitlite_headers};${cppunitlite_src}") # MSVC project structure
 | |
| 
 | |
| option(GTSAM_INSTALL_CPPUNITLITE "Enable/Disable installation of CppUnitLite library" ON)
 | |
| if (GTSAM_INSTALL_CPPUNITLITE)
 | |
|     install(FILES ${cppunitlite_headers} DESTINATION include/CppUnitLite)
 | |
|     install(TARGETS CppUnitLite EXPORT GTSAM-exports ARCHIVE DESTINATION lib)
 | |
| endif(GTSAM_INSTALL_CPPUNITLITE)
 |