Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Convert from qMake to Cmake

Convert from qMake to Cmake

Scheduled Pinned Locked Moved Unsolved Qt 6
qmakecmakeconvert
2 Posts 2 Posters 815 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.
  • M Offline
    M Offline
    Mr.Philip
    wrote on 25 Sept 2022, 09:54 last edited by
    #1

    Hi everyone,
    I have got Dahua camera and it has document about using that in QT. But I usually use Cmake in my project, but document use qmake. So can you help me convert them. I am newbie so I cannot understand this code:

    Debug {
    contains(QMAKE_COMPILER_DEFINES, _WIN64) {
    LIBS += -L./Depends/x64/vs2013shared -lMVSDKmd
    LIBS += -L./Depends/x64/vs2013shared -lVideoRender
    LIBS += -L./Depends/x64/vs2013shared -lImageConvert
    DESTDIR = ./Bin/x64
    }
    else {
    LIBS += -L./Depends/win32/vs2013shared -lMVSDKmd
    LIBS += -L./Depends/win32/vs2013shared -lVideoRender
    LIBS += -L./Depends/win32/vs2013shared -lImageConvert
    DESTDIR = ./Bin/win32
    }
    }
    else {
    contains(QMAKE_COMPILER_DEFINES, _WIN64) {
    LIBS += -L./Depends/x64/vs2013shared -lMVSDKmd
    LIBS += -L./Depends/x64/vs2013shared -lVideoRender
    LIBS += -L./Depends/x64/vs2013shared -lImageConvert
    DESTDIR = ./Bin/x64
    }
    else {
    LIBS += -L./Depends/win32/vs2013shared -lMVSDKmd
    LIBS += -L./Depends/win32/vs2013shared -lVideoRender
    LIBS += -L./Depends/win32/vs2013shared -lImageConvert
    DESTDIR = ./Bin/win32
    }
    }

    INCLUDEPATH = ./Include

    SOURCES += Src/main.cpp
    Src/CammerWidget.cpp
    Src/form.cpp

    HEADERS += Src/CammerWidget.h
    Src/MessageQue.h
    Src/form.h

    FORMS += Src/cammerwidget.ui
    Src/form.ui

    And here is the folder

    folder <</win32/vs2013shared>>
    Screenshot 2022-09-25 165331.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Sept 2022, 18:33 last edited by
      #2

      Hi and welcome to devnet,

      Just keep using cmake.

      Here for Qt 5

      Here for Qt 6

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      25 Sept 2022, 09:54

      • Login

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