qt5base-lts/tests/auto/tools
Alexey Edelev 214c3a033a Add simple project generation based on existing source files
Introduce the qt-cmake-create script. The script generates the simple
CMakeLists.txt based on the source files located in the current or
specified directory. The initial version can generate a CMake code for
the following file types:
  - .c .cc .cpp .cxx .h .hh .hxx .hpp - generates the qt_add_executable
    call with prerequisites.
  - .qml .js .mjs - generates the qt_add_qml_module call with
    prerequisites.
  - .ui - adds the found ui files to the existing executable. Requires
    C++ files be present in the directory too.
  - .qrc - generates the qt_add_resources call and adds the resources
    to the existing executable. Requires C++ files be present in the
    directory too.
  - .proto - generates qt_add_protobuf call with prerequisites.

The QtInitProject.cmake script contains the 'handle_type' function that
allows extending the script capabilities and establish simple relation
chains between the file types.

Note: The initial implementation doesn't deal with sub-directories, so
all files from sub-directories will be added to and handled in the
top-level CMakeLists.txt file. This can be extended by user request.

Task-number: QTBUG-104388
Change-Id: I5abd9e07da109e867ff95986572ed2bf02ef9d3d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2023-02-08 12:59:19 +01:00
..
macdeployqt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
moc moc: Allow calling ctors on pre-allocated data 2023-02-02 15:57:09 +01:00
qdbuscpp2xml Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qdbusxml2cpp qdbusxml2cpp: don't emit Q_DECL_DEPRECATED for the adaptor 2023-02-07 16:32:23 -08:00
qmake Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qmakelib Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qt_cmake_create Add simple project generation based on existing source files 2023-02-08 12:59:19 +01:00
rcc RCCFileInfo: get lastModified file time in UTC directly 2023-01-05 14:46:38 +02:00
uic Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
windeployqt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
CMakeLists.txt Add simple project generation based on existing source files 2023-02-08 12:59:19 +01:00