Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
FindAnt.cmake
Go to the documentation of this file.
1 # - Find Ant (a java build tool)
2 # This module defines
3 # ANT_VERSION version string of ant if found
4 # ANT_FOUND, If false, do not try to use ant
5 
6 exec_program(ant ARGS -version OUTPUT_VARIABLE ANT_VERSION
7  RETURN_VALUE ANT_RETURN)
8 
9 if(ANT_RETURN STREQUAL "0")
10  set(ANT_FOUND TRUE)
11  if(NOT ANT_FIND_QUIETLY)
12  message(STATUS "Found Ant: ${ANT_VERSION}")
13  endif(NOT ANT_FIND_QUIETLY)
14 else(ANT_RETURN STREQUAL "0")
15  set(ANT_FOUND FALSE)
16 endif(ANT_RETURN STREQUAL "0")