diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-04-28 12:21:03 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-05-12 09:11:33 +0200 |
commit | 0f1ff389235018f51c3a5e287896bc4ee3e7c1e9 (patch) | |
tree | 32891bdbc417fa78f0a1761605b92c917a4eb0cb /tools | |
parent | a8284209f33eee8a5ecdbb2cce7798e689bc8b5d (diff) | |
download | qtactiveqt-0f1ff389235018f51c3a5e287896bc4ee3e7c1e9.tar.gz |
Initial port to cmake
Port the 2 main libraries, examples and tests.
Task-number: QTBUG-78167
Change-Id: I0d00c9fa352a96dcd0e1f42d52e6f15680abd9ed
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/CMakeLists.txt | 10 | ||||
-rw-r--r-- | tools/dumpcpp/CMakeLists.txt | 23 | ||||
-rw-r--r-- | tools/dumpdoc/CMakeLists.txt | 18 | ||||
-rw-r--r-- | tools/testcon/CMakeLists.txt | 53 |
4 files changed, 104 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt new file mode 100644 index 0000000..c41b17e --- /dev/null +++ b/tools/CMakeLists.txt @@ -0,0 +1,10 @@ +# Generated from tools.pro. + + +qt_exclude_tool_directories_from_default_target( + testcon +) + +add_subdirectory(dumpdoc) +add_subdirectory(dumpcpp) +add_subdirectory(testcon) diff --git a/tools/dumpcpp/CMakeLists.txt b/tools/dumpcpp/CMakeLists.txt new file mode 100644 index 0000000..6c13386 --- /dev/null +++ b/tools/dumpcpp/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from dumpcpp.pro. + +##################################################################### +## dumpcpp Tool: +##################################################################### + +qt_add_tool(dumpcpp + TOOLS_TARGET AxContainer # special case + SOURCES + main.cpp + moc.cpp moc.h + DEFINES + QT_ASCII_CAST_WARNINGS + QT_NO_CAST_TO_ASCII + PUBLIC_LIBRARIES + Qt::AxContainer + Qt::CorePrivate + Qt::Gui + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:dumpcpp.pro:<TRUE>: +# QMAKE_TARGET_DESCRIPTION = "Active Qt DumpCpp" diff --git a/tools/dumpdoc/CMakeLists.txt b/tools/dumpdoc/CMakeLists.txt new file mode 100644 index 0000000..5ee059e --- /dev/null +++ b/tools/dumpdoc/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from dumpdoc.pro. + +##################################################################### +## dumpdoc Tool: +##################################################################### + +qt_add_tool(dumpdoc + TOOLS_TARGET AxContainer # special case + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::AxContainer + Qt::Gui + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:dumpdoc.pro:<TRUE>: +# QMAKE_TARGET_DESCRIPTION = "Active Qt DumpDoc" diff --git a/tools/testcon/CMakeLists.txt b/tools/testcon/CMakeLists.txt new file mode 100644 index 0000000..1a34519 --- /dev/null +++ b/tools/testcon/CMakeLists.txt @@ -0,0 +1,53 @@ +# Generated from testcon.pro. + +##################################################################### +## testcon Binary: +##################################################################### + +qt_add_executable(testcon + GUI +# OUTPUT_DIRECTORY "$$[QT_INSTALL_BINS]" # special case +# INSTALL_DIRECTORY "$$[QT_INSTALL_BINS]" # special case + SOURCES + ambientproperties.cpp ambientproperties.h ambientproperties.ui + changeproperties.cpp changeproperties.h changeproperties.ui + controlinfo.cpp controlinfo.h controlinfo.ui + docuwindow.cpp docuwindow.h + invokemethod.cpp invokemethod.h invokemethod.ui + main.cpp + mainwindow.cpp mainwindow.h mainwindow.ui + PUBLIC_LIBRARIES + Qt::AxContainer + Qt::AxContainerPrivate + Qt::AxServer + Qt::Gui + Qt::PrintSupport + Qt::Widgets + ENABLE_AUTOGEN_TOOLS + uic +) + +# Resources: +set(testcon_resource_files + "images/controlmethods.png" + "images/controlproperties.png" + "images/filenew.png" +) + +qt_add_resource(testcon "testcon" + PREFIX + "/" + FILES + ${testcon_resource_files} +) + + +#### Keys ignored in scope 1:.:.:testcon.pro:<TRUE>: +# RC_FILE = "testcon.rc" +# TEMPLATE = "app" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:.:testcon.pro:NOT mingw: +# QMAKE_POST_LINK = "midl" "$$shell_quote($$shell_path $$PWD/testcon.idl)" "&&" "move" "testcon.tlb" "$(TARGETDIR)" |