Files
qt-creator/tests/manual/cmakeprojectmanager/hello-widgets/CMakeLists.txt
Cristian Adam 54af6bd5b3 CMakePM: Allow files to be renamed in project view
This includes both with source files explicitly specified or
resulted from a file(GLOB|GLOB_RECOURSE) call.

Fixes: QTCREATORBUG-27538
Change-Id: I5ee113af168bdb8cd0a96e8ab2ae603c0607fb0b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-04-25 09:22:08 +00:00

38 lines
766 B
CMake

cmake_minimum_required(VERSION 3.18)
project(hello-widgets)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets)
qt_add_executable(hello-widgets
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
)
target_link_libraries(hello-widgets PRIVATE Qt6::Widgets)
include(my_add_executable.cmake)
my_add_executable(hello-my-widgets
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
)
target_link_libraries(hello-my-widgets PRIVATE Qt6::Widgets)
file(GLOB SOURCE_FILES CONFIGURE_DEPENDS *.cpp *.h *.ui)
add_executable(hello-widgets-glob ${SOURCE_FILES})
target_link_libraries(hello-widgets-glob PRIVATE Qt6::Widgets)