Fix: Shorten the subdirectories paths in CMAKE_BINARY_DIR

Some subdirectories in CMAKE_BINARY_DIR are so long that they will report
an issue when building TF-M in Windows system. The issue comes from the
longly named secure services. As the library names already take too much
space, the depth shall be simplified.

Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: Ie3ad616745d7f0b62254f5a48a836957a15802d5
diff --git a/test/secure_fw/secure_tests.cmake b/test/secure_fw/secure_tests.cmake
index fcf7a3f..9361712 100644
--- a/test/secure_fw/secure_tests.cmake
+++ b/test/secure_fw/secure_tests.cmake
@@ -19,20 +19,20 @@
 
 # Test services are also required by some NS regression tests.
 # Include test services at first no matter whether secure tests are enabled.
-add_subdirectory(suites/core/service)
-add_subdirectory(suites/spm/ipc/service)
-add_subdirectory(suites/spm/sfn/service)
-add_subdirectory(suites/spm/irq/service)
-add_subdirectory(suites/ps/service)
-add_subdirectory(suites/fpu/service)
+add_subdirectory(suites/core/service ${CMAKE_BINARY_DIR}/tf-m-tests/core_srv)
+add_subdirectory(suites/spm/ipc/service ${CMAKE_BINARY_DIR}/tf-m-tests/ipc_srv)
+add_subdirectory(suites/spm/sfn/service ${CMAKE_BINARY_DIR}/tf-m-tests/sfn_srv)
+add_subdirectory(suites/spm/irq/service ${CMAKE_BINARY_DIR}/tf-m-tests/irq_srv)
+add_subdirectory(suites/ps/service ${CMAKE_BINARY_DIR}/tf-m-tests/ps_srv)
+add_subdirectory(suites/fpu/service ${CMAKE_BINARY_DIR}/tf-m-tests/fpu_srv)
 
 if (NOT TEST_FRAMEWORK_S)
     return()
 endif()
 
 # secure test services are required if any secure test is opened
-add_subdirectory(common_test_services/tfm_secure_client_service)
-add_subdirectory(common_test_services/tfm_secure_client_2)
+add_subdirectory(common_test_services/tfm_secure_client_service ${CMAKE_BINARY_DIR}/tf-m-tests/secure_client_srv)
+add_subdirectory(common_test_services/tfm_secure_client_2 ${CMAKE_BINARY_DIR}/tf-m-tests/secure_client_2_srv)
 
 add_library(tfm_test_framework_s INTERFACE)
 add_library(tfm_s_tests INTERFACE)