# Copyright (c) 2024-present The Limenka developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. set(CMAKE_AUTOMOC_MOC_OPTIONS "-p${CMAKE_CURRENT_SOURCE_DIR}") add_executable(test_limenka-qt apptests.cpp optiontests.cpp rpcnestedtests.cpp test_main.cpp uritests.cpp util.cpp ../../init/limenka-qt.cpp ) target_link_libraries(test_limenka-qt core_interface limenkaqt test_util limenka_node Boost::headers "Qt${WITH_QT_VERSION}::Test" ) import_plugins(test_limenka-qt) if(ENABLE_WALLET) target_sources(test_limenka-qt PRIVATE addressbooktests.cpp wallettests.cpp ../../wallet/test/wallet_test_fixture.cpp ) endif() add_test(NAME test_limenka-qt COMMAND test_limenka-qt ) if(WIN32 AND VCPKG_TARGET_TRIPLET) # On Windows, vcpkg configures Qt with `-opengl dynamic`, which makes # the "minimal" platform plugin unusable due to internal Qt bugs. set_tests_properties(test_limenka-qt PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=windows" ) endif() install_binary_component(test_limenka-qt)