33 lines
841 B
CMake
33 lines
841 B
CMake
cmake_minimum_required(VERSION 3.27)
|
|
project(emailQt)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG -fsanitize=address,undefined")
|
|
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fsanitize=address,undefined")
|
|
|
|
find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
|
|
find_package(Qt6Keychain CONFIG REQUIRED)
|
|
|
|
add_executable(emailQt main.cpp
|
|
EmailClient.hpp
|
|
EmailClient.cpp
|
|
CurlHandler.hpp
|
|
CurlHandler.cpp
|
|
ParametersProvider.cpp
|
|
ParametersProvider.hpp
|
|
Email.cpp
|
|
Email.hpp
|
|
EmailDetails.cpp
|
|
EmailDetails.hpp)
|
|
|
|
target_link_libraries(emailQt PRIVATE Qt6::Core
|
|
Qt6::Gui
|
|
Qt6::Widgets
|
|
curl
|
|
Qt6Keychain::Qt6Keychain)
|