]> Creatis software - crea.git/blob - appli/creaNewProject/NewProject/lib/CMakeLists.txt
eabdd321954f4339c905588058e8d34b52904d0d
[crea.git] / appli / creaNewProject / NewProject / 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   IF(UNIX)
37     SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
38       ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
39     SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib)
40   ELSE(UNIX)
41     SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS 
42       ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
43     SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin)
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 SUBDIRS command for each one of your libraries
53 # SUBDIRS(MyLib1)
54