ANTLR: Check if ANTLR executable is available
include (LibAddMacros)
if (DEPENDENCY_PHASE)
+ execute_process (COMMAND antlr4 RESULT_VARIABLE ANTLR_NOT_AVAILABLE OUTPUT_QUIET)
+ if (ANTLR_NOT_AVAILABLE)
+ remove_plugin (antlr "ANTLR 4 executable (antlr4) not found")
+ endif (ANTLR_NOT_AVAILABLE)
+
find_package (ANTLR4CPP QUIET)
if (NOT ANTLR4CPP_FOUND)
remove_plugin (antlr "ANTLR 4 CPP runtime (antlr4-cpp-runtime) not found")
