Build: fetch_remote_library function to fetch remote libraries.

Signed-off-by: Roman Mazurak <roman.mazurak@infineon.com>
Signed-off-by: Chris Brand <chris.brand@cypress.com>
Change-Id: Ia140e49dc3d776d885584b6f3939107cbc457510
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa28499..417b7d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,9 @@
     cmake_policy(SET CMP0123 NEW)
 endif()
 
+list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 include(cmake/version.cmake)
+include(remote_library)
 
 ############################ CONFIGURATION #####################################
 
@@ -36,8 +38,6 @@
     Message(FATAL_ERROR "Unsupported generator ${CMAKE_GENERATOR}. Hint: Try -G\"Unix Makefiles\"")
 endif()
 
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
-
 ############################### Compiler configuration #########################
 
 include(${TFM_TOOLCHAIN_FILE})