cmake_minimum_required(VERSION 2.4) #=========================================================================== # CMAKE SETTINGS FOR BUILDING A BBTK PACKAGE #===========================================================================c #=========================================================================== # THE NAME OF THE BBTK PACKAGE SET(BBTK_PACKAGE_NAME Utilities) #=========================================================================== #=========================================================================== # IF IT IS A STANDALONE PROJECT UNCOMMENT NEXT LINE TO DECLARE YOUR PROJECT # PROJECT(bb${BBTK_PACKAGE_NAME}) #=========================================================================== #=========================================================================== # PACKAGE AUTHOR # !!! NO COMMA ALLOWED !!! SET(${BBTK_PACKAGE_NAME}_AUTHOR "Monica Lozano") #=========================================================================== #=========================================================================== # PACKAGE DESCRIPTION SET(${BBTK_PACKAGE_NAME}_DESCRIPTION "Set of utilities thar arent in BBTK version 1.0 (before may 21)") #=========================================================================== #=========================================================================== # PACKAGE VERSION NUMBER SET(${BBTK_PACKAGE_NAME}_MAJOR_VERSION 1) SET(${BBTK_PACKAGE_NAME}_MINOR_VERSION 0) SET(${BBTK_PACKAGE_NAME}_BUILD_VERSION 0) #=========================================================================== #=========================================================================== # UNCOMMENT EACH LIBRARY NEEDED (WILL BE FOUND AND USED AUTOMATICALLY) SET(${BBTK_PACKAGE_NAME}_USE_VTK ON) # SET(${BBTK_PACKAGE_NAME}_USE_ITK ON) # SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON) # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON) SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON) SET(USE_BOOST ON) #=========================================================================== #=========================================================================== # LIST HERE THE OTHER bbtk PACKAGES NEEDED # (WILL BE FOUND AND USED AUTOMATICALLY) SET(${BBTK_PACKAGE_NAME}_USE_PACKAGES # std # wx # itk # vtk # ... ) #=========================================================================== #=========================================================================== # THE SOURCES OF THE PACKAGE # EITHER UNCOMMENT NEXT LINE TO COMPILE ALL .cxx OF THE src DIRECTORY : SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_CXX ON) # ... OR LIST THE FILES TO COMPILE MANUALLY : #SET(${BBTK_PACKAGE_NAME}_SOURCES # LIST HERE THE FILES TO COMPILE TO BUILD THE LIB # E.G. TO COMPILE "toto.cxx" ADD "toto" (NO EXTENSION) # THE PATH MUST BE RELATIVE TO THE src FOLDER # ) #=========================================================================== #=========================================================================== # THE xml SOURCES OF THE PACKAGE # EITHER UNCOMMENT NEXT LINE TO bbfy ALL .xml OF THE src DIRECTORY : SET(${BBTK_PACKAGE_NAME}_COMPILE_ALL_XML ON) # ... OR LIST THE FILES TO COMPILE MANUALLY : #SET(${BBTK_PACKAGE_NAME}_XML_SOURCES # LIST HERE THE FILES TO bbfy TO BUILD THE LIB # E.G. TO bbfy "toto.xml" ADD "toto" (NO EXTENSION) # THE PATH MUST BE RELATIVE TO THE src FOLDER # ) #=========================================================================== #=========================================================================== # THE SCRIPT-DEFINED BOXES OF THE PACKAGE (bbs) # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/boxes DIRECTORY : SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_BOXES ON) # ... OR LIST THE FILES TO INCLUDE MANUALLY : # SET(${BBTK_PACKAGE_NAME}_BBS_BOXES # LIST HERE THE bbs FILES TO INCLUDE # E.G. TO INCLUDE "boxes/bbtoto.bbs" ADD "boxes/bbtoto" (NO EXTENSION) # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !! #) #=========================================================================== #=========================================================================== # THE SCRIPT-DEFINED APPLICATIONS OF THE PACKAGE (bbs) # EITHER UNCOMMENT NEXT LINE TO INCLUDE ALL .bbs OF THE bbs/appli DIRECTORY : SET(${BBTK_PACKAGE_NAME}_INCLUDE_ALL_BBS_APPLI ON) # ... OR LIST THE FILES TO INCLUDE MANUALLY : # SET(${BBTK_PACKAGE_NAME}_BBS_APPLI # LIST HERE THE bbs FILES TO INCLUDE # E.G. TO INCLUDE "appli/testToto.bbs" ADD "appli/testToto" (NO EXTENSION) # !! THE PATH MUST BE RELATIVE TO THE bbs FOLDER !! #) #=========================================================================== #=========================================================================== #FINDINGS THE METZ LIBRARY #=========================================================================== FIND_PATH(METZ_SRC NAME CMakeList.wx PATHS C:/CAT08/Desarrollo/Utilidades/Metz DOC "Metz source path" ) IF(NOT METZ_SRC) MESSAGE(FATAL_ERROR "METZ_SRC not found") ENDIF(NOT METZ_SRC) SET (METZ_SRC_DIR ${METZ_SRC}/src/) #FIND_PATH( libIdo_DIR libidobin $ENV{LIBIDO_PATH} ) #FIND_PACKAGE(libIdo) #INCLUDE_DIRECTORIES(${LIBIDO_INCLUDE_PATH}) #============================================================================ #=========================================================================== SET(${BBTK_PACKAGE_NAME}_INCLUDE_DIRS # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES # EXCEPT : # - src # - bbtk dirs # - automatically handled libraries or packages : wx, vtk... (see above) # - the dirs automatically set by other libraries found by FIND_PACKAGE ${METZ_SRC}/src; ) #=========================================================================== #=========================================================================== # METZ LIBRARY #=========================================================================== INCLUDE_DIRECTORIES( # LIST HERE YOUR ADDITIONAL INCLUDE DIRECTORIES (EXCEPT BBTK'S) ${METZ_SRC}/src; ) SET(METZ_LIB_SRCS ${METZ_SRC}/src/MetzData.h; ${METZ_SRC}/src/MetzData.cxx; ) ADD_LIBRARY(METZlib STATIC ${METZ_LIB_SRCS} ) #TARGET_LINK_LIBRARIES(METZlib # ${BBP_WXWIDGETS_LIBRARIES} # vtkCommon vtkFiltering vtkGraphics vtkImaging vtkRendering vtkHybrid # vtkWidgets vtkVolumeRendering vtkHybrid #vtkIO #${LIBIDO_LIBRARIES} #) #=========================================================================== #=========================================================================== SET(${BBTK_PACKAGE_NAME}_LIBS # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST # EXCEPT : the same libs than for INCLUDE_DIRS METZlib ) #=========================================================================== #=========================================================================== # SET TO TRUE TO HAVE INFORMATION ON LIBRARIES FOUND DURING CMAKE CONFIGURE SET(FIND_PACKAGE_VERBOSE TRUE) #=========================================================================== #=========================================================================== # END OF USER SECTION #=========================================================================== #=========================================================================== # Include configuration script INCLUDE(Configure.cmake) #=========================================================================== #=========================================================================== # EOF #===========================================================================