MLECO-3148 Enabling Ctest driven testing
Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com>
Change-Id: Ica67662d20b0c02b75418f79d4ba2f4d18373310
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 150c668..7453176 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,8 @@
include(${CMAKE_SCRIPTS_DIR}/source_gen_utils.cmake)
+enable_testing()
+
if (${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
message(FATAL_ERROR "Source and build are in the same directory")
else()
@@ -150,6 +152,7 @@
list(REMOVE_ITEM USE_CASES "" ${EXCLUDED_USE_CASES})
message(STATUS "Use-cases excluded by platform configuration: ${EXCLUDED_USE_CASES}")
message(STATUS "Building use-cases: ${USE_CASES}.")
+
foreach(use_case ${USE_CASES})
set(SRC_USE_CASE "")