mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-17 12:29:27 +00:00
Replace prototype data and floating-point quotes with live wallet and chain reads, exact Rust quote planning, and optimistic external-wallet submission. Add canonical display-order mapping, responsive QML states, network-scoped program configuration, and packaged Rust client support.
38 lines
978 B
CMake
38 lines
978 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(AmmUiPlugin LANGUAGES CXX)
|
|
|
|
if(DEFINED ENV{LOGOS_MODULE_BUILDER_ROOT})
|
|
include($ENV{LOGOS_MODULE_BUILDER_ROOT}/cmake/LogosModule.cmake)
|
|
else()
|
|
message(FATAL_ERROR "LogosModule.cmake not found. Set LOGOS_MODULE_BUILDER_ROOT.")
|
|
endif()
|
|
|
|
# ui_qml module with a hand-written C++ backend (QtRO .rep view contract +
|
|
# generated *SimpleSource/*ViewPluginBase). Mirrors the LEZ wallet UI module.
|
|
logos_module(
|
|
NAME amm_ui
|
|
REP_FILE src/AmmUiBackend.rep
|
|
SOURCES
|
|
src/AmmUiPluginInterface.h
|
|
src/AmmUiPlugin.h
|
|
src/AmmUiPlugin.cpp
|
|
src/AmmUiBackend.h
|
|
src/AmmUiBackend.cpp
|
|
src/AccountModel.h
|
|
src/AccountModel.cpp
|
|
FIND_PACKAGES
|
|
Qt6Gui
|
|
Qt6Network
|
|
LINK_LIBRARIES
|
|
Qt6::Gui
|
|
Qt6::Network
|
|
EXTERNAL_LIBS
|
|
amm_client
|
|
)
|
|
|
|
qt_add_resources(amm_ui_module_plugin amm_ui_config
|
|
PREFIX "/amm"
|
|
FILES
|
|
config/networks.json
|
|
)
|