From 87d176c0ed9d9ad05771d5148406bdce35fa043a Mon Sep 17 00:00:00 2001
From: Francois Keith <francois.keith@aist.go.jp>
Date: Wed, 10 Nov 2010 01:32:42 +0900
Subject: [PATCH] Correct dependencies between projects

---
 unitTesting/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/unitTesting/CMakeLists.txt b/unitTesting/CMakeLists.txt
index f6bc161..96a4ebc 100644
--- a/unitTesting/CMakeLists.txt
+++ b/unitTesting/CMakeLists.txt
@@ -43,6 +43,8 @@ FOREACH(test_name ${tests_libs})
 
 	TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
 	  ${PROJECT_NAME})
+	ADD_DEPENDENCIES(${LIBRARY_NAME}
+	  ${PROJECT_NAME})
 ENDFOREACH(test_name)
 
 FOREACH(test_name ${tests_exe})
@@ -53,6 +55,8 @@ FOREACH(test_name ${tests_exe})
 
 	TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
 	  ${PROJECT_NAME})
+	ADD_DEPENDENCIES(${EXECUTABLE_NAME}
+	  ${PROJECT_NAME})
 
 	TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
 		${${test_name}_additional_libs})
-- 
GitLab