#---------------------------------------------------------------------------- # SET THE NAME OF YOUR LIBRARY SET ( LIBRARY_NAME maracasVisuLib ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # CREATES A USER OPTION IN CMAKE OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON) #OPTION ( EXPORTS_MaracasKernel "Build ${LIBRARY_NAME} library ?" ON) #IF (EXPORTS_MaracasKernel) # SET(MaracasKernel_EXPORTS) # ADD_DEFINITIONS (-DMaracasKernel_EXPORTS) #ENDIF(EXPORTS_MaracasKernel) #---------------------------------------------------------------------------- IF ( BUILD_${LIBRARY_NAME} ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # BUILD LIBRARY #---------------------------------------------------------------------------- #jhcl-Start=========================================================================== INCLUDE_DIRECTORIES( include src #${MARACAS_SOURCE_DIR}/src/axe3DVTK # ${MARACAS_SOURCE_DIR}/src/interface src/kernel #${MARACAS_SOURCE_DIR}/src/SnakeIsoContour+Deriche src/interface/wxWindows src/interface/wxWindows/widgets src/interface/wxWindows/widgets/pPlotter ../../../ ) #message(jhcl\n\n ${crea_LIBRARIES}) INCLUDE(include/Modules/MARACAS_Find_LIBIDO.cmake) #SET(CREA_LIBRARIES C:/creaBin/Debug/crea.lib) #FIND_PACKAGE(crea) #jhcl-End=========================================================================== #---------------------------------------------------------------------------- # LIBRARY HEADERS (TO BE INSTALLED) # EITHER LIST ALL .h IN CURRENT DIR USING NEXT LINE: #FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h") # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND SET ( ${LIBRARY_NAME}_HEADERS src/interface/wxWindows/manualContour.h src/interface/wxWindows/Contour/ContourCrownWidget.h src/interface/wxWindows/Contour/ContourVOIWidget.h src/interface/wxWindows/Contour/Propagation.h src/interface/wxWindows/Contour/ExtractControlPoints2D.h src/interface/wxWindows/Contour/AutoControlPoints.h src/interface/wxWindows/Contour/ContourPropagation.h src/interface/wxWindows/Contour/contoursIntersection.h src/interface/wxWindows/Contour/vectorFunctions.h ## src/interface/wxWindows/wxMaracasImageBrowser02.h ## src/interface/wxWindows/widgets/wxReadingPriorityPanel.h src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.h src/interface/wxWindows/widgets/InterfaceVtkPanelWidgets.h src/interface/wxWindows/widgets/vtkClosePolyData.h src/interface/wxWindows/wxMaracasMPR.h src/interface/wxWindows/widgets/wxMPRWidget.h src/interface/wxWindows/widgets/wxMPRBaseData.h src/interface/wxWindows/widgets/wxVtkBaseView.h src/interface/wxWindows/widgets/wxMaracas_ViewerWidget.h src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.h src/interface/wxWindows/wxMaracas_ManualTree_MPR.h src/interface/wxWindows/widgets/wxManualTree_MPRWidget.h src/interface/wxWindows/widgets/ContourView.h src/interface/wxWindows/widgets/PointView.h src/interface/wxWindows/widgets/LineView.h src/interface/wxWindows/widgets/UtilVtk3DGeometriSelection.h src/interface/wxWindows/widgets/pPlotter/HistogramDialog.h src/interface/wxWindows/widgets/pPlotter/HistogramWidget.h src/interface/wxWindows/widgets/pPlotter/pHistogram.h src/interface/wxWindows/widgets/pPlotter/mBarRange.h src/interface/wxWindows/widgets/pPlotter/pLogicalFunction.h src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.h src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h src/interface/wxWindows/widgets/pPlotter/pFunctionPoint.h src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.h src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.h src/interface/wxWindows/widgets/pPlotter/pPlotterScaleX.h src/interface/wxWindows/widgets/pPlotter/pPlotterScaleY.h src/interface/wxWindows/widgets/pPlotter/pColorBar.h src/interface/wxWindows/widgets/pPlotter/pFigure.h src/interface/wxWindows/widgets/pPlotter/pColorPoint.h src/interface/wxWindows/widgets/pPlotter/pPlotter.h src/interface/wxWindows/widgets/pPlotter/mathplot.h src/interface/wxWindows/widgets/pPlotter/MaximumsDialog.h src/interface/wxWindows/widgets/pPlotter/Histogram.h include/matrix.h src/kernel/marImageData.h src/kernel/marDicomBase.h # src/kernel/marGdcmDicom.h src/kernel/marObject.h src/kernel/volume.hxx src/kernel/marTypes.h src/kernel/marParameters.h src/kernel/marDynData.h ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # LIBRARY SOURCES (TO BE COMPILED) # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE: #FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc) # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION) SET ( ${LIBRARY_NAME}_SOURCES src/interface/wxWindows/manualContour.cpp src/interface/wxWindows/Contour/ContourCrownWidget.cxx src/interface/wxWindows/Contour/ContourExtractData.cxx src/interface/wxWindows/Contour/ContourVOIWidget.cxx src/interface/wxWindows/Contour/Propagation.cxx src/interface/wxWindows/Contour/ExtractControlPoints2D.cxx src/interface/wxWindows/Contour/AutoControlPoints.cxx src/interface/wxWindows/Contour/ContourPropagation.cxx src/interface/wxWindows/Contour/contoursIntersection.cxx src/interface/wxWindows/Contour/vectorFunctions.cxx # src/interface/wxWindows/wxMaracasImageBrowser02.cxx # src/interface/wxWindows/widgets/wxReadingPriorityPanel.cpp src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx src/interface/wxWindows/widgets/InterfaceVtkPanelWidgets.cxx src/interface/wxWindows/widgets/vtkClosePolyData.cxx src/interface/wxWindows/wxMaracasMPR.cxx src/interface/wxWindows/widgets/wxMPRWidget.cxx src/interface/wxWindows/widgets/wxMPRBaseData.cxx src/interface/wxWindows/widgets/wxVtkBaseView.cxx src/interface/wxWindows/widgets/wxMaracas_ViewerWidget.cxx src/interface/wxWindows/widgets/wxMaracas_N_ViewersWidget.cxx src/interface/wxWindows/wxMaracas_ManualTree_MPR.cxx src/interface/wxWindows/widgets/wxManualTree_MPRWidget.cxx src/interface/wxWindows/res/wxInterface.rc src/interface/wxWindows/widgets/ContourView.cxx src/interface/wxWindows/widgets/PointView.cxx src/interface/wxWindows/widgets/LineView.cxx src/interface/wxWindows/widgets/UtilVtk3DGeometriSelection.cxx #####pPlotter classes src/interface/wxWindows/widgets/pPlotter/HistogramDialog.cxx src/interface/wxWindows/widgets/pPlotter/HistogramWidget.cxx src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx src/interface/wxWindows/widgets/pPlotter/mBarRange.cxx src/interface/wxWindows/widgets/pPlotter/pLogicalFunction.cxx src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.cxx src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx src/interface/wxWindows/widgets/pPlotter/pFunctionPoint.cxx src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.cxx src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx src/interface/wxWindows/widgets/pPlotter/pPlotterScaleX.cxx src/interface/wxWindows/widgets/pPlotter/pPlotterScaleY.cxx src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx src/interface/wxWindows/widgets/pPlotter/pFigure.cxx src/interface/wxWindows/widgets/pPlotter/pColorPoint.cxx src/interface/wxWindows/widgets/pPlotter/pPlotter.cxx src/interface/wxWindows/widgets/pPlotter/mathplot.cxx src/interface/wxWindows/widgets/pPlotter/MaximumsDialog.cxx src/interface/wxWindows/widgets/pPlotter/Histogram.cxx ### src/kernel/marImageData.cpp src/kernel/marDicomBase.cpp # src/kernel/marGdcmDicom.cpp src/kernel/marObject.cpp src/kernel/volume.cxx src/kernel/marParameters.cpp src/kernel/marDynData.cpp ) #---------------------------------------------------------------------------- #jhcl-Start=========================================================================== #message(jhcl4${LIBIDO_LIBRARIES}) #jhcl-End=========================================================================== #---------------------------------------------------------------------------- # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH) SET ( ${LIBRARY_NAME}_LINK_LIBRARIES ${crea_LIBRARIES} ${WXWIDGETS_LIBRARIES} ${VTK_LIBRARIES} ${ITK_LIBRARIES} # ${GDCM_LIBRARIES} # ${BOOST_LIBRARIES} #jhcl-Start=========================================================================== ${LIBIDO_LIBRARIES} ${CREA_LIBRARIES} #${BOOST_LIBRARIES} #jhcl-End=========================================================================== ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL #JHCL #CREA_ADD_LIBRARY( ${LIBRARY_NAME} ) #JHCL # Ya esta hecho arriba # SET(LIBRARY_NAME ******NOMBRE*******) IF(CREA_VERBOSE_CMAKE) MESSAGE(STATUS "** Creating library ${LIBRARY_NAME}") MESSAGE(STATUS " Headers : ${${LIBRARY_NAME}_HEADERS}") MESSAGE(STATUS " Sources : ${${LIBRARY_NAME}_SOURCES}") MESSAGE(STATUS " Link libs: ${${LIBRARY_NAME}_LINK_LIBRARIES}") ENDIF(CREA_VERBOSE_CMAKE) # MANAGE SHARED LIB CREA_MANAGE_SHARED_LIBRARY(${LIBRARY_NAME}) # CREATE THE TARGET ADD_LIBRARY(${LIBRARY_NAME} ${${LIBRARY_NAME}_SHARED} ${${LIBRARY_NAME}_SOURCES}) # LINK TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES}) # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME}) SET(${LIBRARY_NAME}_LIBRARIES ${LIBRARY_NAME}) # FILE(RELATIVE_PATH # ${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS # ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} # ) SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS #lib/THIS_DIR/toto #lib/THIS_DIR/other_headers lib/maracasVisuLib/src #${MARACAS_SOURCE_DIR}/src/axe3DVTK # ${MARACAS_SOURCE_DIR}/src/interface lib/maracasVisuLib/src/kernel #${MARACAS_SOURCE_DIR}/src/SnakeIsoContour+Deriche lib/maracasVisuLib/src/interface/wxWindows lib/maracasVisuLib/src/interface/wxWindows/widgets lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter lib/maracasVisuLib/../../../ ) IF(UNIX) SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS ${EXECUTABLE_OUTPUT_REL_PATH}) SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib) ELSE(UNIX) SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS ${EXECUTABLE_OUTPUT_REL_PATH}/Debug ${EXECUTABLE_OUTPUT_REL_PATH}/Release) SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin) ENDIF(UNIX) SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) SET(${LIBRARY_NAME}_HAS_ADDITIONAL_CONFIG_FILE FALSE) # SET(${LIBRARY_NAME}_ADDITIONAL_CONFIG_FILE # ${PROJECT_SOURCE_DIR}/src/AdditionalcreaImageIOConfig.cmake.in) # SET(${LIBRARY_NAME}_ADDITIONAL_USE_FILE # ${PROJECT_SOURCE_DIR}/src/AdditionalUsecreaImageIO.cmake.in) # Invoke the advanced macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME}) # INSTALLS LIBRARY INSTALL( FILES ${${LIBRARY_NAME}_HEADERS} DESTINATION ${${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS} ) INSTALL( TARGETS ${LIBRARY_NAME} DESTINATION lib) #---------------------------------------------------------------------------- #--------------------------------------------------------------------------- ENDIF ( BUILD_${LIBRARY_NAME} )