diff options
Diffstat (limited to 'tools')
22 files changed, 932 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt new file mode 100644 index 00000000..ce663e93 --- /dev/null +++ b/tools/CMakeLists.txt @@ -0,0 +1,3 @@ +# subdirectories + +tde_auto_add_subdirectories() diff --git a/tools/assistant/CMakeLists.txt b/tools/assistant/CMakeLists.txt new file mode 100644 index 00000000..8ce054e2 --- /dev/null +++ b/tools/assistant/CMakeLists.txt @@ -0,0 +1,101 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### subdirectories + +tde_auto_add_subdirectories() + + +##### tqassistant (executable) + +set( target tqassistant ) + +tde_add_executable( ${target} + SOURCES + main.cpp + helpwindow.cpp + topicchooserimpl.cpp + docuparser.cpp + helpdialogimpl.cpp + settingsdialogimpl.cpp + index.cpp + profile.cpp + config.cpp + + mainwindow.ui + topicchooser.ui + finddialog.ui + helpdialog.ui + settingsdialog.ui + tabbedbrowser.ui + + embed_image_collection.cpp + + LINK + tqt-mt-shared + tqassistantclient-shared + + DESTINATION + ${BIN_INSTALL_DIR} + + DEPENDENCIES + tquic +) + +set_property( + TARGET ${target} + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_NETWORK + QT_INTERNAL_XML +) + +tqt_automoc( ${target} ) + + +##### embed images + +file( + GLOB ${target}_IMAGES + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/images/*.png +) +list( SORT ${target}_IMAGES ) +add_custom_command( OUTPUT embed_image_collection.cpp + COMMAND ${UIC_EXECUTABLE} -embed ${target} ${${target}_IMAGES} + -o ${CMAKE_CURRENT_BINARY_DIR}/embed_image_collection.cpp + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS tquic + COMMENT "Embed images for ${target}" +) +add_custom_target( ${target}-embed-images + COMMENT "Generate embed images for ${target}" + DEPENDS ${CURRENT_CMAKE_BINARY_DIR}/embed_image_collection.cpp +) + + +##### other data + +tde_create_translated_desktop( + SOURCE ${target}.desktop + DESTINATION ${QT_INSTALL_SHARE}/applications +) + +if( BUILD_TRANSLATIONS ) + tqt_create_translation() +endif() + +install( + FILES images/appicon.png + DESTINATION ${QT_INSTALL_SHARE}/pixmaps + RENAME ${target}.png +) diff --git a/tools/assistant/lib/CMakeLists.txt b/tools/assistant/lib/CMakeLists.txt new file mode 100644 index 00000000..90746eb5 --- /dev/null +++ b/tools/assistant/lib/CMakeLists.txt @@ -0,0 +1,42 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### prepare includes + +tqt_install_includes( ntqassistantclient.h ) + + +##### tqassistantclient (shared) + +add_definitions( -DQT_INTERNAL_NETWORK ) + +tde_add_library( tqassistantclient SHARED + + SOURCES + qassistantclient.cpp + + LINK + tqt-mt-shared + + VERSION 1.0.0 + + DESTINATION ${LIB_INSTALL_DIR} +) + +set_property( + TARGET tqassistantclient-shared + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_NETWORK +) + +tqt_automoc( tqassistantclient-shared ) diff --git a/tools/designer/CMakeLists.txt b/tools/designer/CMakeLists.txt new file mode 100644 index 00000000..ce663e93 --- /dev/null +++ b/tools/designer/CMakeLists.txt @@ -0,0 +1,3 @@ +# subdirectories + +tde_auto_add_subdirectories() diff --git a/tools/designer/app/CMakeLists.txt b/tools/designer/app/CMakeLists.txt new file mode 100644 index 00000000..119622e3 --- /dev/null +++ b/tools/designer/app/CMakeLists.txt @@ -0,0 +1,25 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../designer + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqdesigner (executable) + +set( target tqdesigner ) + +tde_add_executable( ${target} + SOURCES main.cpp + LINK tqt-mt-shared tqassistantclient-shared tqui-shared tqtdesignercore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +tqt_automoc( ${target} ) diff --git a/tools/designer/designer/CMakeLists.txt b/tools/designer/designer/CMakeLists.txt new file mode 100644 index 00000000..0aa50233 --- /dev/null +++ b/tools/designer/designer/CMakeLists.txt @@ -0,0 +1,263 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqtdesignercore (shared) + +set( target tqtdesignercore ) + +set( ${target}_SOURCES + command.cpp + formwindow.cpp + defs.cpp + layout.cpp + mainwindow.cpp + mainwindowactions.cpp + metadatabase.cpp + pixmapchooser.cpp + propertyeditor.cpp + resource.cpp + sizehandle.cpp + orderindicator.cpp + widgetfactory.cpp + hierarchyview.cpp + listboxeditorimpl.cpp + newformimpl.cpp + workspace.cpp + listvieweditorimpl.cpp + customwidgeteditorimpl.cpp + paletteeditorimpl.cpp + styledbutton.cpp + iconvieweditorimpl.cpp + multilineeditorimpl.cpp + formsettingsimpl.cpp + asciivalidator.cpp + designerapp.cpp + designerappiface.cpp + actioneditorimpl.cpp + actionlistview.cpp + actiondnd.cpp + project.cpp + projectsettingsimpl.cpp + sourceeditor.cpp + outputwindow.cpp + ../shared/widgetdatabase.cpp + ../shared/parser.cpp + pixmapcollection.cpp + previewframe.cpp + previewwidgetimpl.cpp + paletteeditoradvancedimpl.cpp + sourcefile.cpp + wizardeditorimpl.cpp + qcompletionedit.cpp + timestamp.cpp + formfile.cpp + widgetaction.cpp + propertyobject.cpp + startdialogimpl.cpp + syntaxhighlighter_html.cpp + connectionitems.cpp + editfunctionsimpl.cpp + variabledialogimpl.cpp + listviewdnd.cpp + listboxdnd.cpp + listdnd.cpp + listboxrename.cpp + connectiontable.cpp + popupmenueditor.cpp + menubareditor.cpp + + listboxeditor.ui + editfunctions.ui + newform.ui + listvieweditor.ui + customwidgeteditor.ui + paletteeditor.ui + iconvieweditor.ui + preferences.ui + multilineeditor.ui + formsettings.ui + about.ui + pixmapfunction.ui + createtemplate.ui + actioneditor.ui + projectsettings.ui + finddialog.ui + replacedialog.ui + gotolinedialog.ui + pixmapcollectioneditor.ui + previewwidget.ui + paletteeditoradvanced.ui + wizardeditor.ui + listeditor.ui + startdialog.ui + richtextfontdialog.ui + connectiondialog.ui + variabledialog.ui + configtoolboxdialog.ui + + embed_image_collection.cpp +) + +set( ${target}_INCLUDES + command.h + defs.h + formwindow.h + layout.h + mainwindow.h + metadatabase.h + pixmapchooser.h + propertyeditor.h + resource.h + sizehandle.h + orderindicator.h + widgetfactory.h + hierarchyview.h + listboxeditorimpl.h + newformimpl.h + workspace.h + listvieweditorimpl.h + customwidgeteditorimpl.h + paletteeditorimpl.h + styledbutton.h + iconvieweditorimpl.h + multilineeditorimpl.h + formsettingsimpl.h + asciivalidator.h + ../interfaces/widgetinterface.h + ../interfaces/actioninterface.h + ../interfaces/filterinterface.h + ../interfaces/designerinterface.h + designerapp.h + designerappiface.h + actioneditorimpl.h + actionlistview.h + actiondnd.h + project.h + projectsettingsimpl.h + sourceeditor.h + outputwindow.h + ../shared/widgetdatabase.h + ../shared/parser.h + previewframe.h + previewwidgetimpl.h + paletteeditoradvancedimpl.h + pixmapcollection.h + sourcefile.h + wizardeditorimpl.h + qcompletionedit.h + timestamp.h + formfile.h + widgetaction.h + propertyobject.h + startdialogimpl.h + syntaxhighlighter_html.h + connectionitems.h + editfunctionsimpl.h + variabledialogimpl.h + listviewdnd.h + listboxdnd.h + listdnd.h + listboxrename.h + connectiontable.h + popupmenueditor.h + menubareditor.h +) + +if( WITH_MODULE_SQL ) + list( APPEND ${target}_SOURCES + database.cpp dbconnectionimpl.cpp dbconnectionsimpl.cpp + dbconnections.ui dbconnection.ui dbconnectioneditor.ui + ) + list( APPEND ${target}_INCLUDES + database.h dbconnectionimpl.h dbconnectionsimpl.h +) +endif() + +if( WITH_MODULE_TABLE ) + list( APPEND ${target}_SOURCES + tableeditorimpl.cpp + tableeditor.ui + ) + list( APPEND ${target}_INCLUDES tableeditorimpl.h ) +endif() + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SOURCES} + LINK tqt-mt-shared tqassistantclient-shared tqui-shared + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES tquic +) + +set_property( + TARGET ${target}-shared + APPEND PROPERTY COMPILE_DEFINITIONS + DESIGNER + QT_INTERNAL_XML + QT_INTERNAL_WORKSPACE + QT_INTERNAL_TABLE +) + +tqt_automoc( ${target}-shared INCLUDES ${${target}_INCLUDES} ) + + +##### embed images + +file( + GLOB ${target}_IMAGES + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/images/*.png +) +list( SORT ${target}_IMAGES ) +add_custom_command( OUTPUT embed_image_collection.cpp + COMMAND ${UIC_EXECUTABLE} + -embed ${target} ${${target}_IMAGES} + -o ${CMAKE_CURRENT_BINARY_DIR}/embed_image_collection.cpp + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS tquic + COMMENT "Embed images for ${target}" +) +add_custom_target( ${target}-embed-images + COMMENT "Generate embed images for ${target}" + DEPENDS ${CURRENT_CMAKE_BINARY_DIR}/embed_image_collection.cpp +) + + +##### other data + +tde_create_translated_desktop( + SOURCE tqdesigner.desktop + DESTINATION ${QT_INSTALL_SHARE}/applications +) + +install( + FILES images/appicon.png + DESTINATION ${QT_INSTALL_SHARE}/pixmaps + RENAME tqdesigner.png +) + +if( BUILD_TRANSLATIONS ) + tqt_create_translation() +endif() + +file( + GLOB templates + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../templates/* +) +list( SORT templates ) +install( + FILES ${templates} + DESTINATION ${QT_INSTALL_DATA}/templates +) diff --git a/tools/designer/editor/CMakeLists.txt b/tools/designer/editor/CMakeLists.txt new file mode 100644 index 00000000..9d4070d6 --- /dev/null +++ b/tools/designer/editor/CMakeLists.txt @@ -0,0 +1,41 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqteditor (shared) + +set( target tqteditor ) + +set( ${target}_SOURCES + editor.cpp + parenmatcher.cpp + completion.cpp + viewmanager.cpp + markerwidget.cpp + conf.cpp + browser.cpp + arghintwidget.cpp + cindent.cpp + yyindent.cpp + + preferences.ui +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SOURCES} + LINK tqt-mt-shared + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES tquic +) + +tqt_automoc( ${target}-shared ) diff --git a/tools/designer/plugins/CMakeLists.txt b/tools/designer/plugins/CMakeLists.txt new file mode 100644 index 00000000..ce663e93 --- /dev/null +++ b/tools/designer/plugins/CMakeLists.txt @@ -0,0 +1,3 @@ +# subdirectories + +tde_auto_add_subdirectories() diff --git a/tools/designer/tools/CMakeLists.txt b/tools/designer/tools/CMakeLists.txt new file mode 100644 index 00000000..ce663e93 --- /dev/null +++ b/tools/designer/tools/CMakeLists.txt @@ -0,0 +1,3 @@ +# subdirectories + +tde_auto_add_subdirectories() diff --git a/tools/designer/tools/tqtconv2ui/CMakeLists.txt b/tools/designer/tools/tqtconv2ui/CMakeLists.txt new file mode 100644 index 00000000..a2d1e15a --- /dev/null +++ b/tools/designer/tools/tqtconv2ui/CMakeLists.txt @@ -0,0 +1,25 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqtconv2ui (executable) + +set( target tqtconv2ui ) + +tde_add_executable( ${target} + SOURCES main.cpp + LINK tqt-mt-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +tqt_automoc( ${target} ) diff --git a/tools/designer/tools/tqtcreatecw/CMakeLists.txt b/tools/designer/tools/tqtcreatecw/CMakeLists.txt new file mode 100644 index 00000000..14b2f297 --- /dev/null +++ b/tools/designer/tools/tqtcreatecw/CMakeLists.txt @@ -0,0 +1,24 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqtcreatecw (executable) + +set( target tqtcreatecw ) + +tde_add_executable( ${target} + SOURCES main.cpp + LINK tqt-mt-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +tqt_automoc( ${target} ) diff --git a/tools/designer/uic/CMakeLists.txt b/tools/designer/uic/CMakeLists.txt new file mode 100644 index 00000000..c4580808 --- /dev/null +++ b/tools/designer/uic/CMakeLists.txt @@ -0,0 +1,41 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tquic (executable) + +set( target tquic ) + +tde_add_executable( ${target} + SOURCES + main.cpp uic.cpp form.cpp object.cpp + subclassing.cpp embed.cpp + ../shared/widgetdatabase.cpp + ../shared/domtool.cpp + ../shared/parser.cpp + + LINK + tqt-mt-shared + + DESTINATION + ${BIN_INSTALL_DIR} +) + +set_property( + TARGET ${target} + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_XML + UIC +) + +tqt_automoc( ${target} ) diff --git a/tools/designer/uilib/CMakeLists.txt b/tools/designer/uilib/CMakeLists.txt new file mode 100644 index 00000000..715c8525 --- /dev/null +++ b/tools/designer/uilib/CMakeLists.txt @@ -0,0 +1,54 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### prepare includes + +tqt_install_includes( ntqwidgetfactory.h ) + + +##### tqui (shared) + +set( target tqui ) + +set( ${target}_SOURCES + qwidgetfactory.cpp + ../shared/domtool.cpp + ../shared/uib.cpp +) + +set( ${target}_INCLUDES + ../shared/domtool.h + ../shared/uib.h +) + +if( WITH_MODULE_SQL ) + list( APPEND ${target}_SOURCES ../designer/database.cpp ) + list( APPEND ${target}_INCLUDES ../designer/database2.h ) +endif() + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SOURCES} + LINK tqt-mt-shared + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} +) + +set_property( + TARGET ${target}-shared + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_XML + RESOURCE +) + +tqt_automoc( ${target}-shared INCLUDES ${${target}_INCLUDES} ) diff --git a/tools/linguist/CMakeLists.txt b/tools/linguist/CMakeLists.txt new file mode 100644 index 00000000..ce663e93 --- /dev/null +++ b/tools/linguist/CMakeLists.txt @@ -0,0 +1,3 @@ +# subdirectories + +tde_auto_add_subdirectories() diff --git a/tools/linguist/linguist/CMakeLists.txt b/tools/linguist/linguist/CMakeLists.txt new file mode 100644 index 00000000..80bd6a2a --- /dev/null +++ b/tools/linguist/linguist/CMakeLists.txt @@ -0,0 +1,102 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqlinguist (executable) + +set( target tqlinguist ) + +set( ${target}_SOURCES + finddialog.cpp + main.cpp + msgedit.cpp + phrase.cpp + phrasebookbox.cpp + phraselv.cpp + printout.cpp + simtexth.cpp + trwindow.cpp + listviews.cpp + ../shared/metatranslator.cpp + + about.ui + statistics.ui + + embed_image_collection.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SOURCES} + LINK tqt-mt-shared tqassistantclient-shared + DESTINATION ${BIN_INSTALL_DIR} + DEPENDENCIES tquic +) + +set_property( + TARGET ${target} + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_XML +) + +tqt_automoc( ${target} ) + + +##### embed images + +file( + GLOB ${target}_IMAGES + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/images/*.png +) +list( SORT ${target}_IMAGES ) +add_custom_command( OUTPUT embed_image_collection.cpp + COMMAND ${UIC_EXECUTABLE} + -embed ${target} ${${target}_IMAGES} + -o ${CMAKE_CURRENT_BINARY_DIR}/embed_image_collection.cpp + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS tquic + COMMENT "Embed images for ${target}" +) +add_custom_target( ${target}-embed-images + COMMENT "Generate embed images for ${target}" + DEPENDS ${CURRENT_CMAKE_BINARY_DIR}/embed_image_collection.cpp +) + + +##### other data + +tde_create_translated_desktop( + SOURCE ${target}.desktop + DESTINATION ${QT_INSTALL_SHARE}/applications +) + +install( + FILES images/appicon.png + DESTINATION ${QT_INSTALL_SHARE}/pixmaps + RENAME ${target}.png +) + +if( BUILD_TRANSLATIONS ) + tqt_create_translation() +endif() + +file( + GLOB phrasebooks + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../phrasebooks/* +) +list( SORT phrasebooks ) +install( + FILES ${phrasebooks} + DESTINATION ${QT_INSTALL_DATA}/phrasebooks +) diff --git a/tools/linguist/lrelease/CMakeLists.txt b/tools/linguist/lrelease/CMakeLists.txt new file mode 100644 index 00000000..c7084f17 --- /dev/null +++ b/tools/linguist/lrelease/CMakeLists.txt @@ -0,0 +1,37 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqlrelease (executable) + +set( target tqlrelease ) + +tde_add_executable( ${target} + SOURCES + main.cpp + ../shared/metatranslator.cpp + ../shared/proparser.cpp + + LINK + tqt-mt-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + +set_property( + TARGET ${target} + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_XML +) + +tqt_automoc( ${target} ) diff --git a/tools/linguist/lupdate/CMakeLists.txt b/tools/linguist/lupdate/CMakeLists.txt new file mode 100644 index 00000000..cb3769f1 --- /dev/null +++ b/tools/linguist/lupdate/CMakeLists.txt @@ -0,0 +1,41 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqlupdate (executable) + +set( target tqlupdate ) + +tde_add_executable( ${target} + SOURCES + fetchtr.cpp + main.cpp + merge.cpp + numberh.cpp + sametexth.cpp + ../shared/metatranslator.cpp + ../shared/proparser.cpp + + LINK + tqt-mt-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + +set_property( + TARGET ${target} + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_XML +) + +tqt_automoc( ${target} ) diff --git a/tools/linguist/tqm2ts/CMakeLists.txt b/tools/linguist/tqm2ts/CMakeLists.txt new file mode 100644 index 00000000..ad4988b9 --- /dev/null +++ b/tools/linguist/tqm2ts/CMakeLists.txt @@ -0,0 +1,36 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../shared + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tqm2ts (executable) + +set( target tqm2ts ) + +tde_add_executable( ${target} + SOURCES + main.cpp + ../shared/metatranslator.cpp + + LINK + tqt-mt-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + +set_property( + TARGET ${target} + APPEND PROPERTY COMPILE_DEFINITIONS + QT_INTERNAL_XML +) + +tqt_automoc( ${target} ) diff --git a/tools/linguist/tutorial/CMakeLists.txt b/tools/linguist/tutorial/CMakeLists.txt new file mode 100644 index 00000000..ce663e93 --- /dev/null +++ b/tools/linguist/tutorial/CMakeLists.txt @@ -0,0 +1,3 @@ +# subdirectories + +tde_auto_add_subdirectories() diff --git a/tools/linguist/tutorial/tt1/CMakeLists.txt b/tools/linguist/tutorial/tt1/CMakeLists.txt new file mode 100644 index 00000000..3f6c2fef --- /dev/null +++ b/tools/linguist/tutorial/tt1/CMakeLists.txt @@ -0,0 +1,26 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tt1 (executable) + +set( target tt1 ) + +tde_add_executable( ${target} + SOURCES + main.cpp + + LINK + tqt-mt-shared +) + +tqt_automoc( ${target} ) diff --git a/tools/linguist/tutorial/tt2/CMakeLists.txt b/tools/linguist/tutorial/tt2/CMakeLists.txt new file mode 100644 index 00000000..c2373fd4 --- /dev/null +++ b/tools/linguist/tutorial/tt2/CMakeLists.txt @@ -0,0 +1,28 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tt2 (executable) + +set( target tt2 ) + +tde_add_executable( ${target} + SOURCES + arrowpad.cpp + main.cpp + mainwindow.cpp + + LINK + tqt-mt-shared +) + +tqt_automoc( ${target} ) diff --git a/tools/linguist/tutorial/tt3/CMakeLists.txt b/tools/linguist/tutorial/tt3/CMakeLists.txt new file mode 100644 index 00000000..1d0eafeb --- /dev/null +++ b/tools/linguist/tutorial/tt3/CMakeLists.txt @@ -0,0 +1,28 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64 + ${CMAKE_BINARY_DIR}/include + ${ZLIB_INCLUDE_DIRS} +) + +link_directories() + + +##### tt3 (executable) + +set( target tt3 ) + +tde_add_executable( ${target} + SOURCES + main.cpp + mainwindow.cpp + printpanel.cpp + + LINK + tqt-mt-shared +) + +tqt_automoc( ${target} ) |