nnfw_find_package(GTest QUIET)
+if(NOT DEFINED ENABLE_TEST)
+ # Enable test by default
+ set(ENABLE_TEST ${GTest_FOUND})
+endif(NOT DEFINED ENABLE_TEST)
+
+if(${ENABLE_TEST} AND NOT ${GTest_FOUND})
+ message(FATAL_ERROR "Google Test is required to enable test")
+endif(${ENABLE_TEST} AND NOT ${GTest_FOUND})
+
+if(NOT DEFINED ENABLE_COVERAGE)
+ set(ENABLE_COVERAGE FALSE)
+endif(NOT DEFINED ENABLE_COVERAGE)
+
+if(${ENABLE_COVERAGE} AND NOT ${ENABLE_TEST})
+ message(FATAL_ERROR "Test should be enabled to measure test coverage")
+endif(${ENABLE_COVERAGE} AND NOT ${ENABLE_TEST})
+
+add_library(nnfw_common INTERFACE)
+if(ENABLE_STRICT_BUILD)
+ target_compile_options(nnfw_common INTERFACE -Werror -Wall -Wextra)
+endif(ENABLE_STRICT_BUILD)
+
+# TODO Replace using default build option setting in cmake/buildtool/config/config_linux.cmake
+# to link nnfw_coverage on each module which want to check coverage
+add_library(nnfw_coverage INTERFACE)
+if(ENABLE_COVERAGE)
+ target_compile_options(nnfw_coverage INTERFACE -g -O1 -fprofile-arcs -ftest-coverage)
+ target_link_libraries(nncc_coverage INTERFACE gcov)
+endif(ENABLE_COVERAGE)
+
nnfw_include(ExtendCMakeFunction)
set(NNFW_SOURCE_ROOT "${CMAKE_SOURCE_DIR}/../..")