]> Creatis software - creaBruker.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 26 Aug 2010 09:41:18 +0000 (09:41 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 26 Aug 2010 09:41:18 +0000 (09:41 +0000)
cmake/UserSetDeducedPaths.cmake
lib/src1/CMakeLists.txt

index cf993cbab2ff7f806e64167fa2b7481b0110346c..922742a6af4e0436b2814e57d69d8f476e6854a3 100644 (file)
@@ -43,10 +43,18 @@ CREA_MKDIR(${${PROJECT_NAME}_BBS_BUILD_PATH})
 CREA_MKDIR(${${PROJECT_NAME}_DATA_BUILD_PATH})
 
 #-----------------------------------------------------------------------------
-SET (EXECUTABLE_OUTPUT_PATH 
-  ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH})
-SET (LIBRARY_OUTPUT_PATH    
-  ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
+IF ( NOT ${EXECUTABLE_OUTPUT_REL_PATH} )
+       SET (EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH})
+  ELSE ( NOT ${EXECUTABLE_OUTPUT_REL_PATH} )
+       SET (EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
+ENDIF ( NOT ${EXECUTABLE_OUTPUT_REL_PATH}  )
+
+IF ( NOT ${LIBRARY_OUTPUT_REL_PATH}  )
+       SET (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
+  ELSE ( NOT ${LIBRARY_OUTPUT_REL_PATH}  )
+       SET (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
+ENDIF ( NOT ${LIBRARY_OUTPUT_REL_PATH}  )
+
 #-----------------------------------------------------------------------------
 MESSAGE(STATUS "* EXECUTABLE_OUTPUT_PATH=${EXECUTABLE_OUTPUT_PATH}")
 MESSAGE(STATUS "* LIBRARY_OUTPUT_PATH   =${LIBRARY_OUTPUT_PATH}")
index 85dbafdc226689cd9e5c3c9439d0f5edab025c25..c5149f69e3efa8caf568d705717f7e7662b3f2fe 100644 (file)
@@ -76,30 +76,32 @@ ENDIF(BUILD_DOXYGEN_DOC)
 
 
 
-  IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
-    SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
-  ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
-    FILE(RELATIVE_PATH 
-      CILFC_EXECUTABLE_OUTPUT_REL_PATH
-      ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
-  ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
-
- IF(UNIX)
-    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
-      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
-    SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib)
-  ELSE(UNIX)
-    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
-      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
-    SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin)
-  ENDIF(UNIX)
-  SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) 
-  
-#EED ????  set(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
+##  IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
+##    SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
+##  ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
+##    FILE(RELATIVE_PATH 
+##      CILFC_EXECUTABLE_OUTPUT_REL_PATH
+##      ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
+##  ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
+##
+## IF(UNIX)
+##    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
+##      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
+##    SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib)
+##  ELSE(UNIX)
+##    SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
+##      ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
+##    SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin)
+##  ENDIF(UNIX)
+##  SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) 
+##  
+##  #EED ????  set(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
 
   #----------------------------------------------------------------------------
   # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
   CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
+  # Invoke the advanced macro
+##EED  CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
   #----------------------------------------------------------------------------