MLECO-3149: Add CTest driven FVP runs for non-native targets.
Additional CMake configuration parameters required:
* `BUILD_FVP_TESTS`: Selects whether these tests are built, OFF by default.
* `FVP_PATH`: Path to the FVP that MUST be provided for the configuration to succeed.
Change-Id: I741379cd0a6078a3e2c3163e6b253b2f5dc25c58
Signed-off-by: Sarah Blades <sarah.blades@arm.com>
diff --git a/scripts/cmake/common_user_options.cmake b/scripts/cmake/common_user_options.cmake
index 7a0b068..008d8f0 100644
--- a/scripts/cmake/common_user_options.cmake
+++ b/scripts/cmake/common_user_options.cmake
@@ -150,5 +150,16 @@
${DEFAULT_TA_CONFIG_FILE_PATH}
FILEPATH)
endif()
+
+ USER_OPTION(BUILD_FVP_TESTS "Build tests for CTest driven FVP runs for built applications"
+ OFF
+ BOOL)
+
+ if (BUILD_FVP_TESTS)
+ USER_OPTION(FVP_PATH "Path to FVP for verifying execution"
+ ""
+ FILEPATH)
+ endif()
+
endif()
endif()