X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FCMakeLists.txt;h=f9bfa7a7c95faeb83353d986ff5fc5d8a1d862ec;hb=6dd6814256688df4b99a8664a1c7c5a4b8415de9;hp=0f95400ad18a431e9a45a4fd3c261999f02498ce;hpb=2e0e188cd7ea9695a3241a222927add227573371;p=clitk.git diff --git a/vv/CMakeLists.txt b/vv/CMakeLists.txt index 0f95400..f9bfa7a 100644 --- a/vv/CMakeLists.txt +++ b/vv/CMakeLists.txt @@ -7,6 +7,13 @@ if(COMMAND cmake_policy) endif(COMMAND cmake_policy) #========================================================= +#========================================================= +IF (CLITK_USE_SYSTEM_GDCM) + FIND_PACKAGE(GDCM REQUIRED) + SET(ITK_LIBRARIES ${ITK_LIBRARIES} gdcmDICT gdcmMSFF) +ENDIF() +#========================================================= + #========================================================= #List of vv tools to compile @@ -17,19 +24,19 @@ SET(vv_TOOLS vvToolBinarize vvToolImageArithm vvToolResample -# vvToolExtractPatient -# vvToolExtractLung - vvToolStructureSetManager vvToolMIP vvToolConvert ## with dummy vvToolConvert.ui vvToolROIManager vvToolSegmentation - ## these ones are for tests (not working) # vvToolFoo # vvToolFooWithWidgetBase # vvToolPlastimatch # vvToolConnectedComponentLabeling + ## these ones are old ones + # vvToolExtractPatient + # vvToolExtractLung + # vvToolStructureSetManager ) # dependencies of the tools # Future issues : when tool depend on other tools ... how to manage that ? @@ -43,6 +50,7 @@ SET(vvToolCropImage_LIBS clitkCropImageLib) SET(vvToolMIP_LIBS clitkMIPLib) SET(vvToolMedianFilter_LIBS clitkMedianImageFilterLib) SET(vvToolImageArithm_LIBS clitkImageArithmImageLib) +SET(vvToolROIManager_LIBS clitkDicomRTStruct) #========================================================= # List of vv source files @@ -195,11 +203,13 @@ INCLUDE_DIRECTORIES( ) LINK_DIRECTORIES(${QT_LIBRARY_DIR}) + #========================================================= #Add each tool's dependencies foreach(tool ${vv_TOOLS}) SET(toolLibs ${toolLibs} ${${tool}_LIBS}) endforeach(tool) + #========================================================= #Add Foundation Libraries (this should be after our libraries, since we depend #on them) @@ -217,7 +227,7 @@ ENDIF(CLITK_EXPERIMENTAL) #========================================================= #Create binary and libs for tests -SET(vvExternalLibs ${QT_QTNETWORK_LIBRARY} clitkSegmentationGgoLib clitkDicomRTStruct ${toolLibs} ${foundationLibraries} ${vvCxImage}) +SET(vvExternalLibs ${QT_QTNETWORK_LIBRARY} clitkSegmentationGgoLib ${toolLibs} ${foundationLibraries} ${vvCxImage}) # QtNetwork is required by vvRegisterForm ADD_LIBRARY(vvLib ${vv_SRCS} ${vv_UI_CXX}) @@ -229,9 +239,8 @@ ELSE(WIN32) ADD_EXECUTABLE(vv vv.cxx) ENDIF(WIN32) -#TARGET_LINK_LIBRARIES(vv vvLib) TARGET_LINK_LIBRARIES(vv vvLib) - +#${CLITK_GDCM_LIBRARIES}) #========================================================= # Install options (also used by CPack)