1 # Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE :
3 # USER! : Set the library name (global one)
5 SET(LIBRARY_NAME ___Library_name___here___)
6 SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} )
7 SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
9 # USER! : Give the list of your Libraries
11 SET(${LIBRARY_NAME}_LIBRARIES
12 # ___Your_library_one___here___
13 # ___Your_library_two___here___
14 # ___Your_library_tree___here___
18 # USER! : Give the list of directories holding the '.h' and '.txx' to be installed
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___
26 # USER! : Hands off, here!
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} )
32 CILFC_EXECUTABLE_OUTPUT_REL_PATH
33 ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH})
34 ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} )
36 SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} )
39 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
40 ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
42 SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS
43 ${CILFC_EXECUTABLE_OUTPUT_REL_PATH})
45 SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME})
47 # Invoke the advanced macro
48 CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
50 # USER! : Up to you again, now!
52 # USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries
53 # ADD_SUBDIRECTORY(MyLib1)