aboutsummaryrefslogtreecommitdiff
path: root/CMakeModules
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-29 17:23:22 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-29 17:23:22 +0200
commit37effc3e136c73afd4d6ba37d23a91766795d0f7 (patch)
treee5a1684231df52f48088dd053d57132d390e5a02 /CMakeModules
parentf7f0e8c53bc8231264346ef91e2f533164a25562 (diff)
downloadcmix-37effc3e136c73afd4d6ba37d23a91766795d0f7.tar.gz
cmix-37effc3e136c73afd4d6ba37d23a91766795d0f7.tar.bz2
cmix-37effc3e136c73afd4d6ba37d23a91766795d0f7.zip
This changset triggered a storm of changes.
Added the behaviour for receiving a public_share message from our previous node when not being the first node ourselves. This triggered the whitespace bug below, which sparked the network rewrite. Rewrote network protocol to first send the size of the message it's sending in a 32bit integer in network byte order. Fixed a bug where whitespace in the received buffer would be skipped. leading to broken protobuf messages. NextNode no longers inherits from client but owns one, and some functions needed to be forwarded.
Diffstat (limited to 'CMakeModules')
-rw-r--r--CMakeModules/gmpConfig.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeModules/gmpConfig.cmake b/CMakeModules/gmpConfig.cmake
new file mode 100644
index 0000000..a6e6682
--- /dev/null
+++ b/CMakeModules/gmpConfig.cmake
@@ -0,0 +1,13 @@
+add_library(gmp UNKNOWN IMPORTED)
+find_library(gmp_LIBRARY NAMES "gmp")
+set_property(TARGET gmp PROPERTY IMPORTED_LOCATION "${gmp_LIBRARY}")
+
+add_library(gmpxx UNKNOWN IMPORTED)
+find_library(gmpxx_LIBRARY NAMES "gmpxx")
+set_property(TARGET gmpxx PROPERTY IMPORTED_LOCATION "${gmpxx_LIBRARY}")
+
+find_path(gmp_INCLUDE_DIR NAMES "gmp.h")
+set_property(TARGET gmp PROPERTY INCLUDE_DIRECTORIES ${gmp_INCLUDE_DIR})
+
+find_path(gmpxx_INCLUDE_DIR NAMES "gmpxx.h")
+set_property(TARGET gmpxx PROPERTY INCLUDE_DIRECTORIES ${gmpxx_INCLUDE_DIR})