emailQt/CMakeLists.txt

36 lines
931 B
CMake
Raw Normal View History

2024-03-08 12:10:58 -05:00
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)
2024-03-11 14:04:49 -04:00
find_package(CURL REQUIRED)
2024-03-08 12:10:58 -05:00
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)
2024-03-08 12:10:58 -05:00
target_link_libraries(emailQt PRIVATE Qt6::Core
Qt6::Gui
Qt6::Widgets
2024-03-11 14:04:49 -04:00
CURL::libcurl
2024-03-08 12:10:58 -05:00
Qt6Keychain::Qt6Keychain)