# 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)
