# This file is part of the Flowee project
# Copyright (C) 2019 Tom Zander <tomz@freedommail.ch>
#
# 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 (api)
include (testlib)

set(CMAKE_AUTORCC ON)

add_executable(test_api
    BlackBoxTest.cpp
    TestLive.cpp
    TestBlockchain.cpp
    TestAddressMonitor.cpp
    main.cpp
    data.qrc
)
target_link_libraries(test_api
    flowee_networkmanager
    flowee_utils
    ${TEST_LIBS} ${OPENSSL_LIBRARIES})

configure_file(
    blk00000.dat
    ${CMAKE_CURRENT_BINARY_DIR}/blk00000.dat
    COPYONLY)

add_test(NAME HUB_test_api COMMAND test_api)
