mirror of
https://github.com/logos-blockchain/logos-execution-zone-wallet-ui.git
synced 2026-02-27 19:53:10 +00:00
57 lines
1.4 KiB
CMake
57 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(LogosExecutionZoneWalletUIApp LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
# Find Qt packages
|
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets)
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets)
|
|
|
|
# Find logos-liblogos
|
|
if(NOT DEFINED LOGOS_LIBLOGOS_ROOT)
|
|
message(FATAL_ERROR "LOGOS_LIBLOGOS_ROOT must be defined")
|
|
endif()
|
|
|
|
message(STATUS "Using logos-liblogos at: ${LOGOS_LIBLOGOS_ROOT}")
|
|
|
|
include_directories(
|
|
${LOGOS_LIBLOGOS_ROOT}/include
|
|
)
|
|
|
|
link_directories(
|
|
${LOGOS_LIBLOGOS_ROOT}/lib
|
|
)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
add_executable(logos-execution-zone-wallet-ui-app
|
|
main.cpp
|
|
mainwindow.cpp
|
|
mainwindow.h
|
|
)
|
|
|
|
target_link_libraries(logos-execution-zone-wallet-ui-app PRIVATE
|
|
Qt${QT_VERSION_MAJOR}::Core
|
|
Qt${QT_VERSION_MAJOR}::Widgets
|
|
logos_core
|
|
)
|
|
|
|
if(APPLE)
|
|
set_target_properties(logos-execution-zone-wallet-ui-app PROPERTIES
|
|
INSTALL_RPATH "@executable_path/../lib"
|
|
BUILD_WITH_INSTALL_RPATH TRUE
|
|
)
|
|
elseif(UNIX)
|
|
set_target_properties(logos-execution-zone-wallet-ui-app PROPERTIES
|
|
INSTALL_RPATH "$ORIGIN/../lib"
|
|
BUILD_WITH_INSTALL_RPATH TRUE
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS logos-execution-zone-wallet-ui-app
|
|
RUNTIME DESTINATION bin
|
|
)
|