Support installing multiple build types of libts

Enable heaving multiple libts build types installed in the same system.
This simplifies debugging and coverage measurement of projects using
libts. After this change integrators shall still choose a single release
build type, as these use conflicting naming.

A build type specific letter is appended to the binary name:
  - d: Debug
  - c: DebugCoverage
  - <empty>: release, MinSizeRel, RevWithDebInfo

Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Signed-off-by: Gyorgy Szing <gyorgy.szing@arm.com>
Change-Id: Id404ff7abe8ba79ffa8929f0ad801721ebfc60e0
diff --git a/deployments/deployment.cmake b/deployments/deployment.cmake
index b098c7c..66fa31c 100644
--- a/deployments/deployment.cmake
+++ b/deployments/deployment.cmake
@@ -75,5 +75,12 @@
 	message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\" specified in CMAKE_BUILD_TYPE.")
 endif()
 
+# Set postfix of libraries according the build type.
+if (UC_CMAKE_BUILD_TYPE STREQUAL "DEBUGCOVERAGE")
+	set(CMAKE_${UC_CMAKE_BUILD_TYPE}_POSTFIX "c")
+elseif(UC_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
+	set(CMAKE_${UC_CMAKE_BUILD_TYPE}_POSTFIX "d")
+endif()
+
 # Default protocol UUID used by TS SPs.
 set(TS_RPC_UUID_CANON "bdcd76d7-825e-4751-963b-86d4f84943ac" CACHE STRING "Trusted Services PRC (protocol) UUID.")