${${BBTK_PACKAGE_NAME}_LIBS}
${ITK_LIBRARIES}
)
+
+ #Need to add additional gdcm libraries provided by system
+ IF(WIN32)
+ IF(USE_GDCM2)
+ SET(${BBTK_PACKAGE_NAME}_LIBS
+ ${${BBTK_PACKAGE_NAME}_LIBS}
+ vtkgdcm gdcmIOD gdcmMSFF gdcmexpat gdcmCommon gdcmMEXD gdcmDSED gdcmDICT
+ gdcmjpeg8 gdcmjpeg12 gdcmjpeg16 socketxx gdcmopenjpeg gdcmcharls
+ )
+ ENDIF()
+ ENDIF(WIN32)
ENDIF(${BBTK_PACKAGE_NAME}_USE_ITK)
IF(${BBTK_PACKAGE_NAME}_USE_QT)
${${BBTK_PACKAGE_NAME}_LIBS}
${GDCM_LIBRARIES}
)
+ message(FATAL_ERROR "GDCM2 library" ${GDCM_LIBRARIES})
IF(USE_GDCM)
IF(USE_GDCM2)
message(FATAL_ERROR "You cannot select both GDCM and GDCM2 (DICOM library readers)")
IF(${BBTK_PACKAGE_NAME}_USE_GDCM2)
SET(USE_GDCM2 ON CACHE BOOL "Use GDCM2" FORCE)
SET(USE_GDCM2_VTK ON CACHE BOOL "Use GDCM2_VTK" FORCE)
- SET(${BBTK_PACKAGE_NAME}_LIBS
- ${${BBTK_PACKAGE_NAME}_LIBS}
- ${GDCM2_LIBRARIES}
- )
+ #For some reasons GDCM_LIBRARY is not defined for gdcm2 in windows
+ IF(WIN32)
+ SET(${BBTK_PACKAGE_NAME}_LIBS
+ ${${BBTK_PACKAGE_NAME}_LIBS}
+ vtkgdcm gdcmIOD gdcmMSFF gdcmexpat gdcmCommon gdcmMEXD gdcmDSED gdcmDICT
+ gdcmjpeg8 gdcmjpeg12 gdcmjpeg16 socketxx gdcmopenjpeg gdcmcharls
+ )
+ ELSE(WIN32)
+ SET(${BBTK_PACKAGE_NAME}_LIBS
+ ${${BBTK_PACKAGE_NAME}_LIBS}
+ ${GDCM_LIBRARY}
+ )
+ ENDIF(WIN32)
+
IF(USE_GDCM2)
IF(USE_GDCM)
message(FATAL_ERROR "You cannot select both GDCM and GDCM2 (DICOM library readers)")
)
#===========================================================================
-#===========================================================================
+IF(USE_GDCM)
SET(${BBTK_PACKAGE_NAME}_LIBS
- # LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
- # EXCEPT : the same libs than for INCLUDE_DIRS
vtkgdcm
- )
-#===========================================================================
+ )
+ENDIF(USE_GDCM)
+
#===========================================================================
SET(@BBTK_PACKAGE_NAME@_BUILD_VERSION @BBTK_PACKAGE_BUILD_VERSION@)
SET(@BBTK_PACKAGE_NAME@_INCLUDE_DIRS @BBTK_PACKAGE_INCLUDE_DIRS@)
SET(@BBTK_PACKAGE_NAME@_LIBS @BBTK_PACKAGE_LIBS@)
+
+
# A BBTK PACKAGE NEEDS BBTK
FIND_PACKAGE(BBTK REQUIRED)
# BBTK Package configuration file inclusion
#---------------------------------------------------------------------------
# Include src configuration cmake script
INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_src.cmake)
-#EED 6Mars2010
+
+
add_dependencies(bb${BBTK_PACKAGE_NAME} bbfy)
#---------------------------------------------------------------------------