add ENABLE_GCOV option for cmake
Change-Id: Ic473dc52d748207e49800d0cd340918a4dce0971
This commit is contained in:
committed by
Masamichi Takagi
parent
86e12fa90c
commit
baa7a6adcb
@@ -1,3 +1,9 @@
|
|||||||
|
option(ENABLE_GCOV "Enable GCOV" OFF)
|
||||||
|
if (ENABLE_GCOV)
|
||||||
|
add_compile_options("-fprofile-arcs" "-ftest-coverage")
|
||||||
|
add_link_options("-lgcov" "--coverage")
|
||||||
|
endif(ENABLE_GCOV)
|
||||||
|
|
||||||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/arch/${ARCH})
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/arch/${ARCH})
|
||||||
|
|
||||||
if(ARCH STREQUAL "x86_64")
|
if(ARCH STREQUAL "x86_64")
|
||||||
|
|||||||
2
ihk
2
ihk
Submodule ihk updated: 907ed3964f...797a23795a
Reference in New Issue
Block a user