Fix the gcov build error
[platform/core/api/tethering.git] / CMakeLists.txt
index 05ca685..fd850bd 100755 (executable)
@@ -67,7 +67,9 @@ CONFIGURE_FILE(
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 ADD_SUBDIRECTORY(tools)
-ADD_SUBDIRECTORY(tests)
+IF(BUILD_UNITTEST)
+       ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_UNITTEST)
 
 IF(UNIX)