Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to define QTPLUGINS using CMakeLists?

How to define QTPLUGINS using CMakeLists?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 214 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Devoo
    wrote on last edited by
    #1

    Hey,
    I want to convert this pro code:

    QTPLUGIN += qsvg
    

    to CMakeLists. How can I do this?
    I tried to use this command:

    qt5_import_plugins(INCLUDE Qt5::Svg)
    

    but I got error:

    Unknown CMake command "qt5_import_plugins".
    

    Qt core is found and used, so what am I doing wrong?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved