]> Creatis software - clitk.git/blobdiff - tools/CMakeLists.txt
Remove warning for rtplan 2 gate tool
[clitk.git] / tools / CMakeLists.txt
index f7d426d216310f8845efc889d69cf92e3eaab93d..aea5c93d4619f3727dfbff6cb57885baf661e5ec 100644 (file)
@@ -253,10 +253,12 @@ IF (CLITK_BUILD_TOOLS)
   ENDIF(CLITK_EXPERIMENTAL)
 
   IF(ITK_VERSION_MAJOR VERSION_LESS 4)
-    MESSAGE(WARNING "clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be build.")
+    MESSAGE("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.")
   ELSE(ITK_VERSION_MAJOR VERSION_LESS 4)
+    WRAP_GGO(clitkDicomRTPlan2Gate_GGO_C clitkDicomRTPlan2Gate.ggo)
     ADD_EXECUTABLE(clitkDicomRTPlan2Gate clitkDicomRTPlan2Gate.cxx clitkDicomRTPlan2Gate_ggo.c)
     TARGET_LINK_LIBRARIES(clitkDicomRTPlan2Gate clitkCommon ${ITK_LIBRARIES})
+    SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTPlan2Gate)
   ENDIF(ITK_VERSION_MAJOR VERSION_LESS 4)
 
   SET_TARGET_PROPERTIES(${TOOLS_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" )