mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 15:26:38 +00:00 
			
		
		
		
	Added support for code coverage checking with gcov and unittests with Google C++ unittest and GMock frameworks. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			394 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			394 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(MWINIIMPORT
 | |
|     main.cpp
 | |
|     importer.cpp
 | |
| )
 | |
| 
 | |
| set(MWINIIMPORT_HEADER
 | |
|     importer.hpp
 | |
| )
 | |
| 
 | |
| source_group(launcher FILES ${MWINIIMPORT} ${MWINIIMPORT_HEADER})
 | |
| 
 | |
| add_executable(mwiniimport
 | |
|     ${MWINIIMPORT}
 | |
| )
 | |
| 
 | |
| target_link_libraries(mwiniimport
 | |
|     ${Boost_LIBRARIES}
 | |
|     components
 | |
| )
 | |
| 
 | |
| if (BUILD_WITH_CODE_COVERAGE)
 | |
|   add_definitions (--coverage)
 | |
|   target_link_libraries(mwiniimport gcov)
 | |
| endif()
 |