oxen-core/src
Jason Rhinelander 5b97ff6e9c cmake modernization
The archaic (i.e. decade old) cmake usage here really got in the way of
trying to properly use newer libraries (like lokimq), so this undertakes
overhauling it considerably to make it much more sane (and significantly
reduce the size).

I left more of the architecture-specific bits in the top-level
CMakeLists.txt intact; most of the efforts here are about properly
loading dependencies, specifying dependencies and avoiding a whole pile
of cmake antipatterns.

This bumps the required cmake version to 3.5, which is what xenial comes
with.

- extensive use of interface libraries to include libraries,
definitions, and include paths

- use Boost::whatever instead of ${Boost_WHATEVER_LIBRARY}.  The
interface targets are (again) much better as they also give you any
needed include or linking flags without needing to worry about them.

- don't list header files when building things.  This has *never* been
correct cmake usage (cmake has always known how to wallet_rpc_headers
the headers that .cpp files include to know about build changes).

- remove the loki_add_library monstrosity; it breaks target names and
makes compiling less efficient because the author couldn't figure out
how to link things together.

- make loki_add_executable take the output filename, and set the output
path to bin/ and install to bin because *every single usage* of
loki_add_executable was immediately followed by setting the output
filename and setting the output path to bin/ and installing to bin.

- move a bunch of crap that is only used in one particular
src/whatever/CMakeLists.txt into that particular CMakeLists.txt instead
of the top level CMakeLists.txt (or src/CMakeLists.txt).

- Remove a bunch of redundant dependencies; most of them look like they
were just copy-and-pasted in, and many more aren't needed (since they
are implied by the PUBLIC linking of other dependencies).

- Removed `die` since it just does a FATAL_ERROR, but adds color (which
is useless since CMake already makes FATAL_ERRORs perfectly visible).

- Change the way LOKI_DAEMON_AND_WALLET_ONLY works to just change the
make targets to daemon and simplewallet rather than changing the build
process (this should make it faster, too, since there are various other
things that will be excluded).
2020-03-06 00:36:57 -04:00
..
blockchain_db cmake modernization 2020-03-06 00:36:57 -04:00
blockchain_utilities cmake modernization 2020-03-06 00:36:57 -04:00
blocks cmake modernization 2020-03-06 00:36:57 -04:00
checkpoints cmake modernization 2020-03-06 00:36:57 -04:00
common cmake modernization 2020-03-06 00:36:57 -04:00
crypto cmake modernization 2020-03-06 00:36:57 -04:00
cryptonote_basic cmake modernization 2020-03-06 00:36:57 -04:00
cryptonote_core cmake modernization 2020-03-06 00:36:57 -04:00
cryptonote_protocol cmake modernization 2020-03-06 00:36:57 -04:00
daemon cmake modernization 2020-03-06 00:36:57 -04:00
daemonizer cmake modernization 2020-03-06 00:36:57 -04:00
debug_utilities cmake modernization 2020-03-06 00:36:57 -04:00
device cmake modernization 2020-03-06 00:36:57 -04:00
device_trezor cmake modernization 2020-03-06 00:36:57 -04:00
gen_multisig cmake modernization 2020-03-06 00:36:57 -04:00
lmdb cmake modernization 2020-03-06 00:36:57 -04:00
mnemonics cmake modernization 2020-03-06 00:36:57 -04:00
multisig cmake modernization 2020-03-06 00:36:57 -04:00
net cmake modernization 2020-03-06 00:36:57 -04:00
p2p cmake modernization 2020-03-06 00:36:57 -04:00
platform Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
quorumnet cmake modernization 2020-03-06 00:36:57 -04:00
ringct cmake modernization 2020-03-06 00:36:57 -04:00
rpc cmake modernization 2020-03-06 00:36:57 -04:00
serialization cmake modernization 2020-03-06 00:36:57 -04:00
simplewallet cmake modernization 2020-03-06 00:36:57 -04:00
wallet cmake modernization 2020-03-06 00:36:57 -04:00
CMakeLists.txt cmake modernization 2020-03-06 00:36:57 -04:00
cryptonote_config.h Lower blink fees, remove higher priorities and backlog checking 2020-02-19 12:52:28 -04:00
version.cpp.in Update v6 patch to 4 (#1023) 2020-01-20 12:38:54 +11:00
version.h Store loki version as std::array<u16,3> everywhere 2019-11-27 14:07:52 -04:00