]> Creatis software - clitk.git/blobdiff - vv/CMakeLists.txt
fix warning
[clitk.git] / vv / CMakeLists.txt
index 796aacd305ad92c05b783334721bc996010325da..4d7079e10dc0b354b0d7597cc2e14a8c4d0ef538 100644 (file)
@@ -7,14 +7,15 @@ if(COMMAND cmake_policy)
 endif(COMMAND cmake_policy)
 #=========================================================
 
+#List of vv tools to compile
 SET(vv_TOOLS
   vvToolWidgetBase
 #  vvToolWidgetWithStepsBase
   vvToolMedianFilter
-  vvToolRigidReg
+#  vvToolRigidReg
 #  vvToolFoo
 #  vvToolFooWithWidgetBase
-  vvToolCropImage
+#  vvToolCropImage
   vvToolBinarize
   vvToolSimpleInputSelectorWidget
   vvToolInputSelectorWidget
@@ -23,9 +24,11 @@ SET(vv_TOOLS
   vvToolResample
   vvToolExtractPatient
   vvToolExtractLung
-  # vvToolPlastimatch
+ vvToolPlastimatch
 #  vvToolConnectedComponentLabeling
 )
+#dependencies of the tools
+SET(vvToolRigidReg_LIBS clitkAffineRegistrationLib)
 
 #=========================================================
 # List of vv source files
@@ -196,9 +199,19 @@ clitkBinarizeImageLib
 #Libs for _ggo.c files
 clitkSegmentationGgoLib clitkToolsGgoLib
 clitkRegistrationGgoLib
-clitkCommon ${ITK_LIBRARIES} QVTK vtkHybrid)
+)
 
 #=========================================================
+#Add each tool's dependencies
+foreach(tool ${vv_TOOLS})
+    target_link_libraries(vv ${${tool}_LIBS})
+endforeach(tool)
+
+#=========================================================
+#Add Foundation Libraries (this should be after our libraries, since we depend
+#on them)
+TARGET_LINK_LIBRARIES(vv
+clitkCommon ${ITK_LIBRARIES} QVTK vtkHybrid)
 
 #=========================================================
 # Install options (also used by CPack)