omcproxy: update cmake file
authorÁlvaro Fernández Rojas <[email protected]>
Sun, 19 Oct 2025 18:20:40 +0000 (20:20 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 19 Oct 2025 18:29:04 +0000 (20:29 +0200)
commit8957f6c2557b79d5ec49261de057ec3ba9c9f070
treecd745b859c02b3fd384f80813e03ae54a37249d1
parent848d696419eb2d13b7eaca4295f7711196fd1262
omcproxy: update cmake file

Now that the minimum cmake version has been bumped, the cmake file can
be modernized a bit. Although it might look like a lot of changes, most of them
are quite straightforward.

Every library is located in a consistent manner (allowing command-line
overrides of library locations, useful for local development, and also makes it
trivial to do static linking, if desired).

The compiler flags have been broken up to have one per line (making it easy in
the future to add/remove flags, which would create a simple one-line diff).

Although it might look like this bumps the C standard level, cmake is actually
smart enough to pick an earlier version if C11 isn't supported by the compiler
(quite unlikely on any versions of gcc currently in use in OpenWrt and even on
old distros).

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
CMakeLists.txt