From e5f1480a384729e9423ed0f2591a5cf02e9b943f Mon Sep 17 00:00:00 2001
From: Benoit Neil <suky0001@free.fr>
Date: Wed, 8 Apr 2009 23:48:07 +0000
Subject: [PATCH] (Minor update) Added labal prefixes to tests targets

---
 tests/libtest/CMakeLists.txt | 2 ++
 tests/server/CMakeLists.txt  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt
index 7b9f383b03..4d55cfe05e 100644
--- a/tests/libtest/CMakeLists.txt
+++ b/tests/libtest/CMakeLists.txt
@@ -1,3 +1,4 @@
+SET(TARGET_LABEL_PREFIX "Test ")
 
 FUNCTION(SETUP_TEST TEST_NAME)		# ARGN are the files in the test
 	ADD_EXECUTABLE( ${TEST_NAME} ${ARGN} )
@@ -13,6 +14,7 @@ FUNCTION(SETUP_TEST TEST_NAME)		# ARGN are the files in the test
 	TARGET_LINK_LIBRARIES( ${TEST_NAME} libcurl )
 
 	SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES COMPILE_DEFINITIONS ${UPPER_TEST_NAME})
+	SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL_PREFIX}${TEST_NAME}")
 
 	# Add the postfix to the executable since it is not added automatically as for modules and shared libraries
 	SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}")
diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt
index eaaef0dce6..1df7edb762 100644
--- a/tests/server/CMakeLists.txt
+++ b/tests/server/CMakeLists.txt
@@ -1,3 +1,4 @@
+SET(TARGET_LABEL_PREFIX "Test server ")
 
 FUNCTION(SETUP_EXECUTABLE TEST_NAME)		# ARGN are the files in the test
 	ADD_EXECUTABLE( ${TEST_NAME} ${ARGN} )
@@ -13,6 +14,7 @@ FUNCTION(SETUP_EXECUTABLE TEST_NAME)		# ARGN are the files in the test
 	#TARGET_LINK_LIBRARIES( ${TEST_NAME} libcurl )
 
 	SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES COMPILE_DEFINITIONS USES_DIRECT_CURL_UTILITIES)	# ${UPPER_TEST_NAME}
+	SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES PROJECT_LABEL "${TARGET_LABEL_PREFIX}${TEST_NAME}")
 
 	# Add the postfix to the executable since it is not added automatically as for modules and shared libraries
 	SET_TARGET_PROPERTIES(${TEST_NAME} PROPERTIES DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}")
-- 
GitLab