qt5base-lts/examples/network/securesocketclient/CMakeLists.txt

33 lines
774 B
CMake
Raw Normal View History

# Generated from securesocketclient.pro.
cmake_minimum_required(VERSION 3.14)
project(securesocketclient LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
add_qt_gui_executable(securesocketclient WIN32 MACOSX_BUNDLE
certificateinfo.cpp certificateinfo.h certificateinfo.ui
main.cpp
securesocketclient.qrc
sslclient.cpp sslclient.h sslclient.ui
sslerrors.ui
)
target_link_libraries(securesocketclient PUBLIC
Qt::Network
Qt::Widgets
)
install(TARGETS securesocketclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
)