#==================================
# USER! : Add here as many 'FIND_PACKAGE' blocks as *your* aplication requires
+# -----
# WARNING : we are talking here about 'bbtk packages', not about libraries!
# if your project just requires the GDCM library, and not bbtk/packages/gdcm,
# Libraries/tools used
# USER! : Note : Set USE_CREA to ON
+# -----
+
# if you need to LINK against crea
# (and not only use its macros)
SET(USE_CREA OFF)
${PROJECT_BINARY_DIR}
)
- # USER! : Add here the directories holding the .h you need
+ # USER! : Add here the directories holding the .h you need
+ 3
# INCLUDE_DIRECTORIES(appli/_YOUR_OWN_APPLI_SOURCE_DIRECTORY_)
# INCLUDE_DIRECTORIES(lib/_YOUR_OWN_LIBRARY_SOURCE_DIRECTORY_)
)
#==================================
# USER! : Hands off!
+# ----
+
# ADD SUB DIRECTORIES
# ----------------
ADD_SUBDIRECTORY(lib)
#-----------------------------------
# This one is just a sample.
# USER : you may comment out this line
+# ----
+
ADD_SUBDIRECTORY(bbtk_mySamplePackage_PKG)
+
#==================================
# This one is the default empty package,
# created with the same name than the Project.
# USER : you may use it
+# ----
# Settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE :
# USER! : Set the library name (global one)
+# -----
SET(LIBRARY_NAME mySampleLib)
# SET(LIBRARY_NAME ___Library_name___here___)
# USER! : Give the list of your Libraries
SET(${LIBRARY_NAME}_LIBRARIES
- ___Your_library_one___here___
- ___Your_library_two___here___
- ___Your_library_tree___here___
+ # ___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/mySampleLib
)
# 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} )
CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
# USER! : Up to you again, now!
-
+# -----
# USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries
+# -----
ADD_SUBDIRECTORY(mySampleLib)