-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathPrograms.cmake
89 lines (81 loc) · 3.97 KB
/
Programs.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
############################################################################
# Copyright 2007-2022 Universidade do Porto - Faculdade de Engenharia #
# Laboratório de Sistemas e Tecnologia Subaquática (LSTS) #
############################################################################
# This file is part of DUNE: Unified Navigation Environment. #
# #
# Commercial Licence Usage #
# Licencees holding valid commercial DUNE licences may use this file in #
# accordance with the commercial licence agreement provided with the #
# Software or, alternatively, in accordance with the terms contained in a #
# written agreement between you and Faculdade de Engenharia da #
# Universidade do Porto. For licensing terms, conditions, and further #
# information contact [email protected]. #
# #
# Modified European Union Public Licence - EUPL v.1.1 Usage #
# Alternatively, this file may be used under the terms of the Modified #
# EUPL, Version 1.1 only (the "Licence"), appearing in the file LICENCE.md #
# included in the packaging of this file. You may not use this work #
# except in compliance with the Licence. Unless required by applicable #
# law or agreed to in writing, software distributed under the Licence is #
# distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF #
# ANY KIND, either express or implied. See the Licence for the specific #
# language governing permissions and limitations at #
# https://github.com/LSTS/dune/blob/master/LICENCE.md and #
# http://ec.europa.eu/idabc/eupl.html. #
############################################################################
# Author: Ricardo Martins #
############################################################################
# Test system programs. The following variables are set to the program
# path (if any): DUNE_PROGRAM_JAVA, DUNE_PROGRAM_DOXYGEN
macro(dune_probe_programs)
message(STATUS "")
message(STATUS "******************************************")
message(STATUS "*** Probing Programs ***")
message(STATUS "******************************************")
# Python
message(STATUS "Looking for Python interpreter")
find_program(PYTHON_EXE NAMES python)
if(PYTHON_EXE)
set(DUNE_PROGRAM_PYTHON ${PYTHON_EXE})
message(STATUS "IMC code generation enabled")
else(PYTHON_EXE)
message(STATUS "IMC code generation disabled")
endif(PYTHON_EXE)
# Doxygen
message(STATUS "Looking for Doxygen")
include(FindDoxygen)
if(DOXYGEN)
set(DUNE_PROGRAM_DOXYGEN ${DOXYGEN})
message(STATUS "Source documentation enabled")
endif(DOXYGEN)
# Info-ZIP
message(STATUS "Looking for Info-ZIP")
FIND_PROGRAM(ZIP_EXE NAMES zip)
if(ZIP_EXE)
set(DUNE_PROGRAM_ZIP ${ZIP_EXE})
message(STATUS "Documentation packaging enabled")
endif(ZIP_EXE)
# Gettext.
FIND_PROGRAM(XGETTEXT_EXE NAMES xgettext)
if(XGETTEXT_EXE)
set(DUNE_PROGRAM_XGETTEXT ${XGETTEXT_EXE})
message(STATUS "Gettext string extraction enabled")
else(XGETTEXT_EXE)
message(STATUS "Gettext string extraction disabled")
endif(XGETTEXT_EXE)
FIND_PROGRAM(MSGMERGE_EXE NAMES msgmerge)
if(MSGMERGE_EXE)
set(DUNE_PROGRAM_MSGMERGE ${MSGMERGE_EXE})
message(STATUS "Gettext catalog merging enabled")
else(MSGMERGE_EXE)
message(STATUS "Gettext catalog merging disabled")
endif(MSGMERGE_EXE)
FIND_PROGRAM(MSGFMT_EXE NAMES msgfmt)
if(MSGFMT_EXE)
set(DUNE_PROGRAM_MSGFMT ${MSGFMT_EXE})
message(STATUS "Gettext catalog compilation enabled")
else(MSGFMT_EXE)
message(STATUS "Gettext catalog compilation disabled")
endif(MSGFMT_EXE)
endmacro(dune_probe_programs)