Fix Cmake configuration issue when BUILD_TESTS flag is not enabled
@@ -95,9 +95,11 @@ add_subdirectory( platform )
add_subdirectory( demos )
# Add build configuration for all integration tests.
+if(${BUILD_TESTS})
file(GLOB_RECURSE test_modules "integration-test/*CMakeLists.txt")
foreach(module IN LISTS test_modules)
get_filename_component(DIR_PATH "${module}" DIRECTORY)
add_subdirectory(${DIR_PATH})
endforeach()
+endif()
