]> Creatis software - creaMiniTools.git/blob - lib/CMakeLists.txt
e9352f7ab8064b51663ec8ef2401616d330c0b17
[creaMiniTools.git] / lib / CMakeLists.txt
1 # Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE :
2
3 # USER! : Set the library name (global one)
4
5   SET(LIBRARY_NAME ___Library_name___here___)
6   SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )
7   SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
8   
9 # USER! : Give the list of your Libraries 
10  
11 SET(${LIBRARY_NAME}_LIBRARIES 
12   # ___Your_library_one___here___
13   # ___Your_library_two___here___ 
14   # ___Your_library_tree___here___     
15
16    )
17
18 # USER! : Give the list of directories holding the '.h' and '.txx' to be installed
19
20  SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS
21   #  lib/___Your_include_directory_one___here___
22   #  lib/___Your_include_directory_two___here___
23   #  lib/___Your_include_directory_tree___here___    
24  )
25
26 # USER! : Hands off, here!
27
28   IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
29     SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".")
30   ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
31     FILE(RELATIVE_PATH 
32       CILFC_EXECUTABLE_OUTPUT_REL_PATH
33       ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
34   ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
35
36   SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )
37
38   IF(UNIX)
39     SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
40       ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
41   ELSE(UNIX)
42     SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
43       ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
44   ENDIF(UNIX)
45   SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME})
46
47   # Invoke the advanced macro
48   CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
49  
50 # USER! : Up to you again, now!
51        
52 # USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries
53 # ADD_SUBDIRECTORY(MyLib1)
54