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
Forum Updated to NodeBB v4.3 + New Features

Add external library Cmake Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
cmakeexternal librarlibrabriesqt5.15.2windows
3 Posts 2 Posters 613 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 21 Jun 2024, 12:28 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
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Jun 2024, 13:11 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 21 Jun 2024, 13:21
      0
      • J jsulm
        21 Jun 2024, 13:11

        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 21 Jun 2024, 13:21 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

        3/3

        21 Jun 2024, 13:21

        • Login

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