10510fcb99
Protocol Buffers interaction is just another serialization standard, while its widespread it has fortunately mostly been kept out of anything relevant or important. Mostly due to the fact that is really quite bad from a technical perspective. This adds simple and basic support for creating and parsing protocol buffer messages, mostly to allow interoperability. If you want quality: use the MessagBuilder/MessageParser ones instead.
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
# This file is part of the Flowee project
|
|
# Copyright (C) 2023 Tom Zander <tom@flowee.org>
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
project (test-protobuf)
|
|
include (testlib)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
include_directories(${Qt6Test_INCLUDE_DIRS})
|
|
include_directories(${Protobuf_INCLUDE_DIRS})
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS fusion.proto)
|
|
|
|
add_executable(test_protobuf TestProtoBuf.cpp fusion.pb.cc)
|
|
target_link_libraries(test_protobuf
|
|
flowee_testlib
|
|
flowee_utils
|
|
${OPENSSL_LIBRARIES}
|
|
${Boost_LIBRARIES}
|
|
${Protobuf_LIBRARIES})
|
|
add_test(NAME Pay_test_protobuf COMMAND test_protobuf)
|