ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Make CMake reuse Makefile.common?

From: Peter Wu <peter@xxxxxxxxxxxxx>
Date: Mon, 2 Mar 2015 13:16:07 +0100
Hi,

Recently there have been two issues due to separate copies between CMake
and autofoo (missing ATH dissector, missing field registrations for
plugins).

The former could occur due to missing duplication from Makefile.common
into CMakeLists.txt. The latter happens because the
plugins/*/CMakeLists.txt are slightly different than the Makefiles (in
terms of variable sets).

Hereby I am proposing to convert Makefile.common automatically to
CMakeLists.inc.txt, and then include that during the build process to
set variables. The inspiration comes from cURL which too supports
autoconf, and (as an experimental option) cmake.

See this transformation macro[0] and its use[1] for an example.
-- 
Kind regards,
Peter Wu
https://lekensteyn.nl

 [0]: https://github.com/bagder/curl/blob/master/CMakeLists.txt#L986
 [1]: https://github.com/bagder/curl/blob/master/tests/libtest/CMakeLists.txt#L31