wireshark/epan
Peter Wu 4c1690ac47 CMake: require at least CMake 3.5
CMake 3.11 with the Ninja generator started complaining about CMP0058
related to ui/qt/CMakeFiles/qtui_autogen.dir/RCCstock_iconsInfo.cmake
amd other files (AUTORCC). While the policy could be set explicitly,
let's try to modernize the CMake configuration:

- Drop CMP0042, if this gives issues with macOS, then it must be solved
  in a different way using non-deprecated methods.
- Drop CMP0054 and ensure that all if("${foo}") and if(${foo}) are
  converted to if(foo).
- Remove string comparison against "-NOTFOUND", it already evaluates to
  false in an if condition.
- Use CXX_STANDARD/CXX_STANDARD_REQUIRED for Qt 5.7 and newer.
- Assume that copy_if_different can accept multiple sources (CMake 3.5).
- Consistency: Out of the 60 CMake 3.11 FindXxx.cmake files that use
  find_library, 34 contain "XXX_LIBRAR" while 16 contain "Xxx_LIBRAR".
  Let's assume uppercase variables (now custom MaxMindDB include dirs
  are correctly used).

CMake 3.5 was chosen as the next version because of its wide support.
Ubuntu 14.04 ships with cmake3 3.5.1, Debian jessie-backports has 3.6.2,
EPEL for CentOS/RHEL6 includes cmake3 3.6.1 and SLES12 SP2 has 3.5.

Change-Id: I2fa7b94bf8cc78411f414987d17bab3a33dfb360
Reviewed-on: https://code.wireshark.org/review/27444
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-05-15 10:28:09 +00:00
..
crypt
dfilter Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
dissectors CMake: require at least CMake 3.5 2018-05-15 10:28:09 +00:00
ftypes ftypes: fix memleak when converting protocol values 2018-04-25 06:55:52 +00:00
wmem fix missing parentheses in 'if' statement 2018-05-03 04:09:42 +00:00
wslua Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
.editorconfig
CMakeLists.txt CMake: require at least CMake 3.5 2018-05-15 10:28:09 +00:00
addr_and_mask.c
addr_and_mask.h
addr_resolv.c addr_resolv: fix memleak of g_penterprises_path 2018-04-25 04:09:48 +00:00
addr_resolv.h
address.h
address_types.c
address_types.h
afn.c
afn.h
aftypes.c
aftypes.h
app_mem_usage.c
app_mem_usage.h
arcnet_pids.h
arptypes.h
asn1.c
asn1.h
ax25_pids.h
bridged_pids.h
capture_dissectors.c
capture_dissectors.h
charsets.c
charsets.h
chdlctypes.h
color_filters.c
color_filters.h
column-info.h
column-utils.c fix missing parentheses in 'if' statement 2018-05-03 04:09:42 +00:00
column-utils.h
column.c
column.h
conv_id.h
conversation.c
conversation.h
conversation_debug.h
conversation_table.c
conversation_table.h
crc6-tvb.c
crc6-tvb.h
crc8-tvb.c
crc8-tvb.h
crc10-tvb.c
crc10-tvb.h
crc16-tvb.c
crc16-tvb.h
crc32-tvb.c
crc32-tvb.h
decode_as.c
decode_as.h
diam_dict.h
diam_dict.l
disabled_protos.c
disabled_protos.h
dissector_filters.c
dissector_filters.h
dtd.h
dtd_grammar.lemon Use common indenting space in heading 2018-05-01 06:55:55 +00:00
dtd_parse.h Use common indenting space in heading 2018-05-01 06:55:55 +00:00
dtd_parse.l
dtd_preparse.l
dvb_chartbl.c
dvb_chartbl.h
eap.h
eapol_keydes_types.h
epan.c
epan.h
epan_dissect.h
etypes.h
ex-opt.c
ex-opt.h
except.c
except.h
exceptions.h Handle subset tvbuffs where the length goes past the end of the parent. 2018-04-20 03:18:47 +00:00
exntest.c
expert.c Free g_ptr_array_free-related memory leaks 2018-05-14 13:42:10 +00:00
expert.h
export_object.c
export_object.h
exported_pdu.c
exported_pdu.h
filter_expressions.c Fix minor leak in filter_expression_new. 2018-04-28 16:28:18 +00:00
filter_expressions.h
follow.c
follow.h
frame_data.c
frame_data.h
frame_data_sequence.c
frame_data_sequence.h
funnel.c
funnel.h
garrayfix.h
golay.c
golay.h
guid-utils.c
guid-utils.h
iana_charsets.c
iana_charsets.h
iax2_codec_type.h
in_cksum.c
in_cksum.h
ip_opts.h
ipproto.c
ipproto.h
ipv4.h
ipv6.h
lapd_sapi.h
llcsaps.h
maxmind_db.c
maxmind_db.h
media_params.c
media_params.h
next_tvb.c
next_tvb.h
nlpid.h
oids.c Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
oids.h
oids_test.c
osi-utils.c
osi-utils.h
oui.h
packet.c Handle subset tvbuffs where the length goes past the end of the parent. 2018-04-20 03:18:47 +00:00
packet.h
packet_info.h
params.h
plugin_if.c plugin_if: fix small memory leak in ext_menubar_add_separator 2018-05-05 05:57:25 +00:00
plugin_if.h
ppptypes.h
prefs-int.h
prefs.c Get rid of GTK+-only structure member. 2018-05-12 22:47:24 +00:00
prefs.h
print.c
print.h
print.ps
print_stream.c
print_stream.h
proto.c Free g_ptr_array_free-related memory leaks 2018-05-14 13:42:10 +00:00
proto.h tshark: improve -G elastic-mapping command by adding filters. 2018-04-19 15:54:47 +00:00
proto_data.c
proto_data.h
ps.h
ptvcursor.h
radius_dict.l Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
range.c
range.h
reassemble.c
reassemble.h
reassemble_test.c
reedsolomon.c
reedsolomon.h
register.c
register.h
req_resp_hdrs.c
req_resp_hdrs.h
rtd_table.c Get rid of some GTK+-only stuff. 2018-05-12 23:01:14 +00:00
rtd_table.h Get rid of some GTK+-only stuff. 2018-05-12 23:01:14 +00:00
rtp_pt.h
sctpppids.h
sequence_analysis.c
sequence_analysis.h
show_exception.c Put protocol name before "length of contained item...". 2018-04-22 21:45:48 +00:00
show_exception.h
slow_protocol_subtypes.h
sminmpec.h epan: Trivial constant sort order fix - sminmpec.h 2018-04-21 06:10:35 +00:00
srt_table.c Get rid of some GTK+-only stuff. 2018-05-13 19:46:45 +00:00
srt_table.h Get rid of some GTK+-only stuff. 2018-05-13 19:46:45 +00:00
stat_groups.h
stat_tap_ui.c Get rid of some GTK+-only stuff. 2018-05-13 20:21:14 +00:00
stat_tap_ui.h Get rid of some GTK+-only stuff. 2018-05-13 20:21:14 +00:00
stats_tree.c Free g_array_free-related memory leaks 2018-05-14 13:44:23 +00:00
stats_tree.h
stats_tree_priv.h
stream.c
stream.h
strutil.c
strutil.h
t35.c
t35.h
tap-voip.h
tap.c
tap.h
tfs.c
tfs.h
time_fmt.h
timestamp.c
timestamp.h
timestats.c
timestats.h
to_str-int.h
to_str.c
to_str.h
tvbparse.c
tvbparse.h Use common indenting space in heading 2018-05-01 06:55:55 +00:00
tvbtest.c Update some comments. 2018-04-20 02:58:36 +00:00
tvbuff-int.h Handle subset tvbuffs where the length goes past the end of the parent. 2018-04-20 03:18:47 +00:00
tvbuff.c tvbuff: make tvb_bytes_exist fail with negative values 2018-05-14 13:07:23 +00:00
tvbuff.h Update some comments. 2018-04-20 02:58:36 +00:00
tvbuff_base64.c
tvbuff_composite.c Handle subset tvbuffs where the length goes past the end of the parent. 2018-04-20 03:18:47 +00:00
tvbuff_real.c Handle subset tvbuffs where the length goes past the end of the parent. 2018-04-20 03:18:47 +00:00
tvbuff_subset.c Handle subset tvbuffs where the length goes past the end of the parent. 2018-04-20 03:18:47 +00:00
tvbuff_zlib.c
uat-int.h
uat.c
uat.h
uat_load.l
unit_strings.c
unit_strings.h
value_string.c
value_string.h
x264_prt_id.h
xdlc.c
xdlc.h