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. Add external library Cmake Windows
QtWS25 Last Chance

Add external library Cmake Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
cmakeexternal librarlibrabriesqt5.15.2windows
3 Posts 2 Posters 526 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.
  • J Offline
    J Offline
    Joe von Habsburg
    wrote on last edited by
    #1

    How do I add the FFTW3 library or any other library to my QT 5.15.2 CMake project? Assume that the library files are in the same directory (main.cpp and fftw-3/ folder in the same directory).
    Please help me, I'm about to lose my mind. I can't manage to add it. (for windows)

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      What did you try?
      https://cmake.org/cmake/help/latest/command/target_link_libraries.html

      Do you also have the *.lib files for these libs there? You can't link *.dll files, for linking you need *.lib.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        What did you try?
        https://cmake.org/cmake/help/latest/command/target_link_libraries.html

        Do you also have the *.lib files for these libs there? You can't link *.dll files, for linking you need *.lib.

        J Offline
        J Offline
        Joe von Habsburg
        wrote on last edited by Joe von Habsburg
        #3

        I looked these but, I could not understand anything. I need some example

        @jsulm said in Add external library Cmake Windows:

        Do you also have the *.lib files for these libs there? You can't link *.dll files, for linking you need *.lib.

        Yes I have all files

        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