- IF(ITK_VERSION_MAJOR VERSION_LESS 4)
- MESSAGE("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.")
- ELSE(ITK_VERSION_MAJOR VERSION_LESS 4)
+ if(ITK_VERSION_MAJOR VERSION_LESS 4)
+ message("clitkDice is not compatible with ITK<4. It will not be built.")
+ message("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.")
+ else(ITK_VERSION_MAJOR VERSION_LESS 4)
+ WRAP_GGO(clitkDice_GGO_C clitkDice.ggo)
+ add_executable(clitkDice clitkDice.cxx ${clitkDice_GGO_C})
+ target_link_libraries(clitkDice clitkSegmentationGgoLib clitkCommon ${ITK_LIBRARIES} )
+ set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDice)
+