[Jderobot-admin] jderobot-r1039 - trunk

frivas en jderobot.org frivas en jderobot.org
Vie Oct 11 21:32:15 CEST 2013


Author: frivas
Date: 2013-10-11 21:32:15 +0200 (Fri, 11 Oct 2013)
New Revision: 1039

Modified:
   trunk/CMakeLists.txt
Log:
#68 changed the installation path of recursive headers


Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2013-10-11 18:54:08 UTC (rev 1038)
+++ trunk/CMakeLists.txt	2013-10-11 19:32:15 UTC (rev 1039)
@@ -121,9 +121,17 @@
 
 
 FILE(GLOB_RECURSE HEADERS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/stable/libs/*.h)
+message("test de librerías")
 FOREACH(currentSourceFile ${HEADERS_FILES})
-    string(REGEX REPLACE ".*/(.*/).*.h" "\\1" new_source1 ${currentSourceFile})
-    INSTALL (FILES ${currentSourceFile} DESTINATION /usr/local/include/jderobot/${new_source1})
+		message( ${CMAKE_CURRENT_SOURCE_DIR}/src/stable/libs/)
+		message( ${currentSourceFile})
+    string(REGEX REPLACE "(.*/).*.h" "\\1" new_source1 ${currentSourceFile})
+		string(REGEX REPLACE  "${CMAKE_CURRENT_SOURCE_DIR}/src/stable/libs" "" new_source2 ${new_source1})
+
+
+		message("replaced: ${new_source1}")
+	message("replaced2: ${new_source2}")
+    INSTALL (FILES ${currentSourceFile} DESTINATION /usr/local/include/jderobot/${new_source2})
 ENDFOREACH(currentSourceFile)
 
 # Install libraries headers



More information about the Jderobot-admin mailing list