1 #=========================================================
2 # make clitk libraries*
3 CONFIGURE_FILE(clitkConfiguration.h.in ${PROJECT_BINARY_DIR}/clitkConfiguration.h)
10 clitkTransformUtilities.cxx
12 clitkGateAsciiImageIO.cxx
13 clitkGateAsciiImageIOFactory.cxx
15 clitkVoxImageIOFactory.cxx
17 clitkVfImageIOFactory.cxx
18 clitkXdrImageIOReader.cxx
19 clitkXdrImageIOWriter.cxx
20 clitkXdrImageIOFactory.cxx
22 rtkHisImageIOFactory.cxx
24 rtkHndImageIOFactory.cxx
26 rtkEdfImageIOFactory.cxx
28 rtkXRadImageIOFactory.cxx
30 rtkImagXImageIOFactory.cxx
31 rtkImagXXMLFileReader.cxx
32 clitkEsrfHstImageIO.cxx
33 clitkEsrfHstImageIOFactory.cxx
34 clitkEsrfHstXMLFileReader.cxx
35 clitkDicomRTDoseIO.cxx
36 clitkDicomRTDoseIOFactory.cxx
38 clitkImageToImageGenericFilterBase.cxx
39 clitkExceptionObject.cxx
46 IF(CLITK_PRIVATE_FEATURES)
47 SET(clitkCommon_SRC ${clitkCommon_SRC}
48 ${PROJECT_SOURCE_DIR}/private_features/clitkUsfImageIO.cxx
49 ${PROJECT_SOURCE_DIR}/private_features/clitkUsfImageIOFactory.cxx
50 ${PROJECT_SOURCE_DIR}/private_features/clitkUSVoxImageIO.cxx
51 ${PROJECT_SOURCE_DIR}/private_features/clitkUSVoxImageIOFactory.cxx
52 ${PROJECT_SOURCE_DIR}/private_features/clitkSvlImageIO.cxx
53 ${PROJECT_SOURCE_DIR}/private_features/clitkSvlImageIOFactory.cxx
55 ENDIF(CLITK_PRIVATE_FEATURES)
57 ### Declare clitkCommon library
58 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
61 TARGET_LINK_LIBRARIES(clitkCommon statgrab)
62 ENDIF(CLITK_MEMORY_INFO)
64 ### Check if ITK was compiled with SYSTEM_GDCM = ON and set the gdcm libraries accordingly
65 SET(CLITK_USE_SYSTEM_GDCM FALSE)
66 IF(ITK_VERSION_MAJOR LESS "4")
67 IF(ITK_USE_SYSTEM_GDCM)
68 SET(CLITK_USE_SYSTEM_GDCM TRUE)
69 ENDIF(ITK_USE_SYSTEM_GDCM)
70 ELSE(ITK_VERSION_MAJOR LESS "4")
71 SET(GDCM_INCLUDE_INSTALL ".*include/gdcm-.*")
72 SET(GDCM_INCLUDE_BUILD ".*/Source/MediaStorageAndFileFormat")
73 IF(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_BUILD} OR ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_INSTALL})
74 SET(CLITK_USE_SYSTEM_GDCM TRUE)
75 ENDIF(ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_BUILD} OR ITKGDCM_INCLUDE_DIRS MATCHES ${GDCM_INCLUDE_INSTALL})
76 ENDIF(ITK_VERSION_MAJOR LESS "4")
78 IF(CLITK_USE_SYSTEM_GDCM)
79 SET(CLITK_GDCM_LIBRARIES gdcmDSED)
80 ENDIF(CLITK_USE_SYSTEM_GDCM)
82 TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ${ITK_LIBRARIES} ${CLITK_GDCM_LIBRARIES})
84 ADD_LIBRARY(clitkDicomRTStruct STATIC
85 clitkDicomRT_Contour.cxx
87 clitkDicomRT_StructureSet.cxx
88 clitkDicomRTStruct2ImageFilter.cxx
91 TARGET_LINK_LIBRARIES(clitkDicomRTStruct vtkHybrid ${CLITK_GDCM_LIBRARIES})
93 #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC})
94 #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)