Build: Convert cmake dir to modern cmake
Remove unneeded cmake files inside the cmake directory. Add some new
utility files.
WARNING: This change will not build in isolation, it requires _all_
other cmake changes to successfully build. It is split out only for
clarity of changes.
Change-Id: I07dfb1c1e8f8346ae10e7cd891df700e5dd0d827
Signed-off-by: Raef Coles <raef.coles@arm.com>
diff --git a/cmake/install.cmake b/cmake/install.cmake
new file mode 100644
index 0000000..73a2a7e
--- /dev/null
+++ b/cmake/install.cmake
@@ -0,0 +1,14 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+#Generate correct filename
+string(TOUPPER ${TFM_PLATFORM} TFM_PLATFORM_UPPERCASE)
+string(REGEX REPLACE "-" "_" TFM_PLATFORM_UPPERCASE_UNDERSCORE ${TFM_PLATFORM_UPPERCASE})
+
+install(DIRECTORY ${CMAKE_BINARY_DIR}/bin/
+ DESTINATION ${CMAKE_BINARY_DIR}/install/outputs/${TFM_PLATFORM_UPPERCASE_UNDERSCORE}
+ )