<div dir="ltr">A CMakeLists.txt files replaces your .pro project file. Yours would look something like the following. I don't use Qt Designer so I'm not quite sure about the .ui-related configuration (or the OpenGL module).<div><br></div><div><div>cmake_minimum_required(VERSION 2.8.12)</div><div>PROJECT(Endoscopic3D)</div><div>set(CMAKE_AUTOMOC ON)</div><div>set(CMAKE_INCLUDE_CURRENT_DIR ON)</div></div><div><br></div><div>SET(ITK_DIR "C:/Program Files/ITK/lib/cmake/ITK-4.5")<br></div><div><div>FIND_PACKAGE(Qt5Core REQUIRED )</div><div>FIND_PACKAGE(Qt5Widgets REQUIRED)</div></div><div>FIND_PACKAGE(Qt5OpenGL REQUIRED)</div><div><div>find_package(ITK REQUIRED)</div><div>include(${ITK_USE_FILE})</div></div><div class="gmail_extra">include_directories (${CMAKE_CURRENT_BINARY_DIR})<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">SET (SRCS <span style="font-family:arial,sans-serif;font-size:12.8000001907349px">main.cpp</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> mainwindow.cpp</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> thread.cpp</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> display3d.cpp</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> matroxmeteorii.cpp)</span></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">SET (MOC_SRCS </font><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">mainwindow.h</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> thread.h</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> display3d.h</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> core.h</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> matroxmeteorii.h)</span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"><div class="gmail_extra">QT5_WRAP_UI(UIS_HDRS</div><div class="gmail_extra"> mainwindow.ui<span style="font-size:12.8000001907349px">)</span></div></span></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">ADD_EXECUTABLE(Endoscopic3D WIN32 ${SRCS} ${UIS_HDRS}</font><span style="font-family:arial,sans-serif"> )</span></div><div class="gmail_extra"><font face="arial, sans-serif">TARGET_LINK_LIBRARIES(Endoscopic3D Qt5::Widgets Qt5::OpenGL ${ITK_LIBRARIES})</font></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font><div class="gmail_quote">On Thu, Sep 18, 2014 at 2:57 PM, Nikita Chopra <span dir="ltr"><<a href="mailto:nikita@iitj.ac.in" target="_blank">nikita@iitj.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi<br></div>Thanks a lot for quick responses . Can you suggest me
the changes I should make in .pro file to add ITK libs there so I can
use qmake to build the project .Thanks again I'm new to ITK and any help
would be really appreciated. My .pro file is as follows.<br># ------------------------------<div dir="ltr">-------------------<br># Project created by QtCreator 2010-10-25T15:08:18<br># -------------------------------------------------<br>QT += opengl<br>TARGET = Endoscopic3D<br>TEMPLATE = app<br>INCLUDEPATH += . \<br> "C:\Program Files\Matrox Imaging\Mil\Include"<br>LIBS += "-LC:\Program Files\Matrox Imaging\Mil\LIB" \<br> -lmil<br>SOURCES += main.cpp \<br> mainwindow.cpp \<br> thread.cpp \<br> display3d.cpp \<br> matroxmeteorii.cpp<br>HEADERS += mainwindow.h \<br> thread.h \<br> display3d.h \<br> core.h \<br> matroxmeteorii.h<br>FORMS += mainwindow.ui</div></div></blockquote></div></div></div>