diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-03-15 15:32:40 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-03-02 18:52:12 +0100 |
commit | 12bd9b6b2bba50da9c3444dfb42b985ed2a6a7c1 (patch) | |
tree | 8319b9e98b3fa1f2a2a61d7719eb9a714c7ad66a /tools/assistant/CMakeLists.txt | |
parent | 34587584ab80fd696cc9d73dda1326f175125ddf (diff) | |
download | tqt-feat/cmakeConv.tar.gz tqt-feat/cmakeConv.zip |
Conversion to the cmake building system.feat/cmakeConv
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tools/assistant/CMakeLists.txt')
-rw-r--r-- | tools/assistant/CMakeLists.txt | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/tools/assistant/CMakeLists.txt b/tools/assistant/CMakeLists.txt new file mode 100644 index 000000000..8ce054e21 --- /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 +) |