Convert from qMake to Cmake
-
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.cppHEADERS += Src/CammerWidget.h
Src/MessageQue.h
Src/form.hFORMS += Src/cammerwidget.ui
Src/form.uiAnd here is the folder
folder <</win32/vs2013shared>>
-