blob: 711af0758ab9cb2ebb5d91785507e0828ce607ea [file] [log] [blame]
Jan Kundrát75c88c52020-11-12 01:51:26 +01001macro(discover_netconf_executables)
2 if (NOT SYSREPOCTL_EXECUTABLE)
3 find_program(SYSREPOCTL_EXECUTABLE sysrepoctl)
4 endif()
5 if (NOT SYSREPOCTL_EXECUTABLE)
6 message(FATAL_ERROR "Unable to find sysrepoctl, set SYSREPOCTL_EXECUTABLE manually.")
7 endif()
8
9 if (NOT SYSREPOCFG_EXECUTABLE)
10 find_program(SYSREPOCFG_EXECUTABLE sysrepocfg)
11 endif()
12 if (NOT SYSREPOCFG_EXECUTABLE)
13 message(FATAL_ERROR "Unable to find sysrepocfg, set SYSREPOCFG_EXECUTABLE manually.")
14 endif()
15
16 if (NOT NETOPEER2_EXECUTABLE)
17 find_program(NETOPEER2_EXECUTABLE netopeer2-server)
18 endif()
19 if (NOT NETOPEER2_EXECUTABLE)
20 message(FATAL_ERROR "Unable to find netopeer2-server, set NETOPEER2_EXECUTABLE manually.")
21 endif()
22
23 pkg_get_variable(SYSREPO_SR_REPO_PATH sysrepo SR_REPO_PATH)
24endmacro()