input_generator: fix to check touch_count only if set_touch_count() is requested
[platform/core/api/efl-util.git] / CMakeLists.txt
index 90eda63..8cb32e0 100644 (file)
@@ -21,7 +21,11 @@ FOREACH(flag ${${fw_name}_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations")
+IF(EFLUTILGCOV)
+    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations -fprofile-arcs -ftest-coverage")
+ELSE(EFLUTILGCOV)
+    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations")
+ENDIF(EFLUTILGCOV)
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 IF("${ARCH}" STREQUAL "arm")