2022-07-15 07:30:16 +00:00
|
|
|
# Wallet Module build definition
|
|
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
|
2022-08-03 12:43:33 +00:00
|
|
|
project(Wallet # To rename this to WalletSection????
|
2022-07-15 07:30:16 +00:00
|
|
|
VERSION 0.1.0
|
|
|
|
LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(QT_NO_CREATE_VERSIONLESS_FUNCTIONS true)
|
|
|
|
|
|
|
|
find_package(Qt6 ${STATUS_QT_VERSION} COMPONENTS Quick Qml Concurrent REQUIRED)
|
|
|
|
qt6_standard_project_setup()
|
|
|
|
|
|
|
|
qt6_add_qml_module(Wallet
|
|
|
|
URI Status.Wallet
|
|
|
|
VERSION 1.0
|
|
|
|
|
|
|
|
QML_FILES
|
2022-07-26 11:20:59 +00:00
|
|
|
qml/Status/Wallet/NewAccount/AddWatchOnlyAccountView.qml
|
2022-07-15 07:30:16 +00:00
|
|
|
qml/Status/Wallet/NewAccount/NewWalletAccountView.qml
|
2022-07-26 11:20:59 +00:00
|
|
|
qml/Status/Wallet/NewAccount/TmpColorComboBox.qml
|
2022-07-15 07:30:16 +00:00
|
|
|
qml/Status/Wallet/AssetsPanel.qml
|
|
|
|
qml/Status/Wallet/AssetView.qml
|
|
|
|
qml/Status/Wallet/WalletContentView.qml
|
|
|
|
qml/Status/Wallet/WalletView.qml
|
2022-09-06 15:26:06 +00:00
|
|
|
qml/Status/Wallet/SavedAddresses/SavedAddressesView.qml
|
|
|
|
qml/Status/Wallet/SavedAddresses/AddSavedAddressesView.qml
|
2022-07-15 07:30:16 +00:00
|
|
|
|
|
|
|
# Required to suppress "qmllint may not work" warning
|
|
|
|
OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Status/Wallet/
|
|
|
|
)
|
|
|
|
add_library(Status::Wallet ALIAS Wallet)
|
|
|
|
|
|
|
|
target_include_directories(Wallet
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
|
|
|
|
# Workaround to Qt6's *_qmltyperegistrations.cpp
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include/Status/Wallet/
|
|
|
|
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(Wallet
|
|
|
|
PRIVATE
|
|
|
|
Qt6::Quick
|
|
|
|
Qt6::Qml
|
|
|
|
Qt6::Concurrent
|
|
|
|
|
|
|
|
Status::ApplicationCore
|
|
|
|
Status::Onboarding
|
|
|
|
|
|
|
|
Status::StatusGoQt
|
|
|
|
Status::StatusGoConfig
|
|
|
|
)
|
|
|
|
|
|
|
|
# QtCreator needs this
|
|
|
|
set(QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/qml;${QML_IMPORT_PATH} CACHE STRING "For QtCreator" FORCE)
|
|
|
|
list(REMOVE_DUPLICATES QML_IMPORT_PATH)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
Wallet
|
|
|
|
RUNTIME
|
|
|
|
)
|
|
|
|
|
|
|
|
target_sources(Wallet
|
|
|
|
PRIVATE
|
2022-07-26 11:49:03 +00:00
|
|
|
include/Status/Wallet/AccountAssetsController.h
|
|
|
|
src/AccountAssetsController.cpp
|
2022-07-15 07:30:16 +00:00
|
|
|
include/Status/Wallet/DerivedWalletAddress.h
|
|
|
|
src/DerivedWalletAddress.cpp
|
|
|
|
include/Status/Wallet/NewWalletAccountController.h
|
|
|
|
src/NewWalletAccountController.cpp
|
|
|
|
# Move to Accounts module
|
2022-07-26 11:49:03 +00:00
|
|
|
include/Status/Wallet/WalletAccount.h
|
2022-07-15 07:30:16 +00:00
|
|
|
src/WalletAccount.cpp
|
2022-07-26 11:49:03 +00:00
|
|
|
include/Status/Wallet/WalletAsset.h
|
|
|
|
src/WalletAsset.cpp
|
2022-07-15 07:30:16 +00:00
|
|
|
include/Status/Wallet/WalletController.h
|
|
|
|
src/WalletController.cpp
|
2022-09-06 15:26:06 +00:00
|
|
|
include/Status/Wallet/SavedAddress.h
|
|
|
|
src/SavedAddress.cpp
|
2022-09-05 15:22:18 +00:00
|
|
|
include/Status/Wallet/SavedAddressesController.h
|
|
|
|
src/SavedAddressesController.cpp
|
2022-07-15 07:30:16 +00:00
|
|
|
)
|