diff options
Diffstat (limited to 'examples/widgets/widgets/calendarwidget/CMakeLists.txt')
-rw-r--r-- | examples/widgets/widgets/calendarwidget/CMakeLists.txt | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/examples/widgets/widgets/calendarwidget/CMakeLists.txt b/examples/widgets/widgets/calendarwidget/CMakeLists.txt index 463fce3849..ed496bdad7 100644 --- a/examples/widgets/widgets/calendarwidget/CMakeLists.txt +++ b/examples/widgets/widgets/calendarwidget/CMakeLists.txt @@ -1,16 +1,27 @@ # Generated from calendarwidget.pro. -##################################################################### -## calendarwidget Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(calendarwidget LANGUAGES CXX) -add_qt_executable(calendarwidget - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/calendarwidget" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/widgets/calendarwidget" - SOURCES - main.cpp - window.cpp window.h - LIBRARIES - Qt::Widgets +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 Widgets) + +add_executable(calendarwidget WIN32 MACOSX_BUNDLE + main.cpp + window.cpp window.h +) +target_link_libraries(calendarwidget PUBLIC + Qt::Widgets +) + +install(TARGETS calendarwidget + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) |