diff options
Diffstat (limited to 'examples/widgets/painting/transformations/CMakeLists.txt')
-rw-r--r-- | examples/widgets/painting/transformations/CMakeLists.txt | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/examples/widgets/painting/transformations/CMakeLists.txt b/examples/widgets/painting/transformations/CMakeLists.txt index a3c3130c32..5837f90f9d 100644 --- a/examples/widgets/painting/transformations/CMakeLists.txt +++ b/examples/widgets/painting/transformations/CMakeLists.txt @@ -1,17 +1,28 @@ # Generated from transformations.pro. -##################################################################### -## transformations Binary: -##################################################################### +cmake_minimum_required(VERSION 3.14) +project(transformations LANGUAGES CXX) -add_qt_executable(transformations - GUI - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations" - SOURCES - main.cpp - renderarea.cpp renderarea.h - 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(transformations WIN32 MACOSX_BUNDLE + main.cpp + renderarea.cpp renderarea.h + window.cpp window.h +) +target_link_libraries(transformations PUBLIC + Qt::Widgets +) + +install(TARGETS transformations + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" ) |