mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
34513cf16b
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>
25 lines
394 B
CMake
25 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()
|