38 lines
969 B
CMake
38 lines
969 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_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
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)
|
|
find_package(CURL 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
|
|
KeychainClass.cpp
|
|
KeychainClass.hpp)
|
|
|
|
target_link_libraries(emailQt PRIVATE Qt6::Core
|
|
Qt6::Gui
|
|
Qt6::Widgets
|
|
CURL::libcurl
|
|
Qt6Keychain::Qt6Keychain)
|