multimon-ng: added support for building with cmake #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, multimon-ng builds with qmake. However, this requires pulling in X11
packages in order to install. Since multimon-ng is a console application the
requirement of X11 shouldn't be required. The fix is to use cmake to build
the project. This patch adds a CMakeLists.txt file in order to build the project.
The project was succesfully built on Mac OS (Darwin), Linux CentOS 7 with gcc and on
Microsoft Windows with Microsoft Visual Studio 2012. The resulting program was ran
on Linux CentOS 7 and succesfully processes POCSAG512 messages.
To build without X11 support on Linux:
$ cmake -DX11_SUPPORT=OFF .
$ make
To build without Pulse Audio support on Linux:
$ cmake -DPULSE_AUDIO_SUPPORT=OFF .
$ make
Note that: X11 and Pulse Audio libraries aren't searched for on either Microsoft Windows or
Macintosh