From 0d52a7350982a8451d4a229e7ce03a6db3ad0ce2 Mon Sep 17 00:00:00 2001
From: Thomas Moulard <thomas.moulard@gmail.com>
Date: Fri, 29 Oct 2010 20:02:52 +0200
Subject: [PATCH] Simplify CMakeLists.txt in unitTesting and add copyright
 header.

---
 unitTesting/CMakeLists.txt | 33 ++++++++++++++++++++-------------
 1 file changed, 20 insertions(+), 13 deletions(-)

diff --git a/unitTesting/CMakeLists.txt b/unitTesting/CMakeLists.txt
index 89f3fea..991bd68 100644
--- a/unitTesting/CMakeLists.txt
+++ b/unitTesting/CMakeLists.txt
@@ -1,6 +1,17 @@
-# 
-#  Copyright 
-# 
+# Copyright 2010, Olivier Stasse, JRL, CNRS/AIST
+#
+# This file is part of dynamic-graph.
+# dynamic-graph is free software: you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# as published by the Free Software Foundation, either version 3 of
+# the License, or (at your option) any later version.
+#
+# dynamic-graph is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Lesser Public License for more details.  You should have
+# received a copy of the GNU Lesser General Public License along with
+# dynamic-graph. If not, see <http://www.gnu.org/licenses/>.
 
 ### tests
 SET(tests_exe
@@ -17,12 +28,8 @@ SET(test_signalcast_additional_libs ${test_libs})
 
 ADD_DEFINITIONS(-DDEBUG=2)
 
-INCLUDE_DIRECTORIES(
-	${CMAKE_CURRENT_SOURCE_DIR}/../include 
-)
+LINK_DIRECTORIES(../src)
 
-LINK_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/lib)
-	
 # Additional tests
 FOREACH(test_name ${tests_libs})
 	SET(LIBRARY_NAME ${test_name})
@@ -30,7 +37,7 @@ FOREACH(test_name ${tests_libs})
 	ADD_LIBRARY(${LIBRARY_NAME}
 	  SHARED
 	  ${test_name}.cpp)
-	
+
 	TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
 	  ${PROJECT_NAME})
 ENDFOREACH(test_name)
@@ -40,12 +47,12 @@ FOREACH(test_name ${tests_exe})
 
 	ADD_EXECUTABLE(${EXECUTABLE_NAME}
 	  ${test_name}.cpp)
-		
+
 	TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
 	  ${PROJECT_NAME})
-	  
-	TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} 
+
+	TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
 		${${test_name}_additional_libs})
-	  
+
 	ADD_TEST(NAME ${test_name} COMMAND ${test_name})
 ENDFOREACH(test_name)
-- 
GitLab