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?
Forum Update on Monday, May 27th 2025

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 14 Aug 2020, 06:48 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

    1/1

    14 Aug 2020, 06:48

    • Login

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