2
# Search for the valadocc executable in the usual system paths.
3
find_program(VALADOC_EXECUTABLE NAMES valadoc)
5
# Handle the QUIETLY and REQUIRED arguments, which may be given to the find call.
6
# Furthermore set VALA_FOUND to TRUE if Vala has been found (aka.
7
# VALA_EXECUTABLE is set)
9
include(FindPackageHandleStandardArgs)
10
find_package_handle_standard_args(Valadoc DEFAULT_MSG VALADOC_EXECUTABLE)
12
mark_as_advanced(VALADOC_EXECUTABLE)
14
# Determine the valac version
16
execute_process(COMMAND ${VALA_EXECUTABLE} "--version"
17
OUTPUT_VARIABLE "VALA_VERSION")
18
string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION})
19
string(STRIP ${VALA_VERSION} "VALA_VERSION")