X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=appli%2FcreaNewProject%2FNewProject%2Flib%2FCMakeLists.txt;h=373c3f4aa93489ffa11a939cd976103dc03710f1;hb=625abcd1dcc99c29740cdc77940c00f567086348;hp=4d9145edb3b2f2c01e31dab341acd50d5b7e13bb;hpb=9d52a00a53cdc3b56d707179242650318e677255;p=crea.git diff --git a/appli/creaNewProject/NewProject/lib/CMakeLists.txt b/appli/creaNewProject/NewProject/lib/CMakeLists.txt index 4d9145e..373c3f4 100644 --- a/appli/creaNewProject/NewProject/lib/CMakeLists.txt +++ b/appli/creaNewProject/NewProject/lib/CMakeLists.txt @@ -1,54 +1,6 @@ -# Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE : -# USER! : Set the library name (global one) +# USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries +# ----- - SET(LIBRARY_NAME ___Library_name___here___) - SET(LIBRARY_NAME_BASE ${LIBRARY_NAME} ) - SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME}) - -# USER! : Give the list of your Libraries - -SET(${LIBRARY_NAME}_LIBRARIES - ___Your_library_one___here___ - ___Your_library_two___here___ - ___Your_library_tree___here___ - - ) - -# USER! : Give the list of directories holding the '.h' and '.txx' to be installed - - SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS - lib/___Your_include_directory_one___here___ - lib/___Your_include_directory_two___here___ - lib/___Your_include_directory_tree___here___ - ) - -# USER! : Hands off, here! - - 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} ) - - SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS ${CMAKE_CREA_LIB_PATH} ) - - IF(UNIX) - SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS - ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}) - ELSE(UNIX) - SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS - ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}) - ENDIF(UNIX) - SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) - - # Invoke the advanced macro - CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME}) - -# USER! : Up to you again, now! - -# USER! : Add a SUBDIRS command for each one of your libraries -# SUBDIRS(MyLib1) +ADD_SUBDIRECTORY(mySampleLib)