mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 00:15:16 +00:00
07907ded5c
It now has a more sensible UI/UX: - Added a QR code you can scan on your phone to complete the logn flow - Inverted the progress bar to show that it is a timeout - Redone the text label so that it does not break the layout when it has multiple lines Also started working on redoing the accounts/profiles/skins/capes management in general
35 lines
800 B
CMake
35 lines
800 B
CMake
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(qrcode)
|
|
enable_testing()
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED true)
|
|
set(CMAKE_C_STANDARD_REQUIRED true)
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
find_package(Qt5 COMPONENTS Core Gui Svg REQUIRED)
|
|
|
|
set( qrcode_PRIVATE
|
|
src/qrcodegen.cpp
|
|
src/qrcodegen.h
|
|
src/QrCodeGenerator.cpp
|
|
)
|
|
|
|
set( qrcode_PUBLIC
|
|
include/qrcode/QrCodeGenerator.h
|
|
)
|
|
|
|
add_library( qrcode STATIC ${qrcode_PRIVATE} ${qrcode_PUBLIC} )
|
|
target_link_libraries(qrcode Qt5::Core Qt5::Gui Qt5::Svg)
|
|
|
|
# needed for statically linked qrcode in shared libs on x86_64
|
|
set_target_properties(qrcode
|
|
PROPERTIES POSITION_INDEPENDENT_CODE TRUE
|
|
)
|
|
|
|
target_include_directories(qrcode PUBLIC include PRIVATE src include/qrcode)
|