Public bug reported:

All of the plugins have the same name by using the template. Previously,
it had a customized name using the project. I have found that all of the
plugins from different project have the same name as "Myapp". The plugin
project could be reused by some other projects. A customized name is
useful to differentiate from others.

set(
    Myappbackend_SRCS
    modules/Myapp/backend.cpp
    modules/Myapp/mytype.cpp
    modules/Myapp/readenv.cpp
)

add_library(Myappbackend MODULE
    ${Myappbackend_SRCS}
)

set_target_properties(Myappbackend PROPERTIES
         LIBRARY_OUTPUT_DIRECTORY Myapp)

qt5_use_modules(Myappbackend Gui Qml Quick)

# Copy qmldir file to build dir for running in QtCreator
add_custom_target(Myappbackend-qmldir ALL
    COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/modules/Myapp/qmldir 
${CMAKE_CURRENT_BINARY_DIR}/Myapp
    DEPENDS ${QMLFILES}
)

# Install plugin file
install(TARGETS Myappbackend DESTINATION ${QT_IMPORTS_DIR}/Myapp/)
install(FILES   modules/Myapp/qmldir DESTINATION ${QT_IMPORTS_DIR}/Myapp/)

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1350690

Title:
  All of the plugins have the same name by using the template

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1350690/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to