[ITK-users] (no subject)
Mike Chinander
chinander at gmail.com
Thu Sep 18 16:46:51 EDT 2014
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).
cmake_minimum_required(VERSION 2.8.12)
PROJECT(Endoscopic3D)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(ITK_DIR "C:/Program Files/ITK/lib/cmake/ITK-4.5")
FIND_PACKAGE(Qt5Core REQUIRED )
FIND_PACKAGE(Qt5Widgets REQUIRED)
FIND_PACKAGE(Qt5OpenGL REQUIRED)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
include_directories (${CMAKE_CURRENT_BINARY_DIR})
SET (SRCS main.cpp
mainwindow.cpp
thread.cpp
display3d.cpp
matroxmeteorii.cpp)
SET (MOC_SRCS mainwindow.h
thread.h
display3d.h
core.h
matroxmeteorii.h)
QT5_WRAP_UI(UIS_HDRS
mainwindow.ui)
ADD_EXECUTABLE(Endoscopic3D WIN32 ${SRCS} ${UIS_HDRS} )
TARGET_LINK_LIBRARIES(Endoscopic3D Qt5::Widgets Qt5::OpenGL
${ITK_LIBRARIES})
On Thu, Sep 18, 2014 at 2:57 PM, Nikita Chopra <nikita at iitj.ac.in> wrote:
> Hi
> 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.
> # ------------------------------
> -------------------
> # Project created by QtCreator 2010-10-25T15:08:18
> # -------------------------------------------------
> QT += opengl
> TARGET = Endoscopic3D
> TEMPLATE = app
> INCLUDEPATH += . \
> "C:\Program Files\Matrox Imaging\Mil\Include"
> LIBS += "-LC:\Program Files\Matrox Imaging\Mil\LIB" \
> -lmil
> SOURCES += main.cpp \
> mainwindow.cpp \
> thread.cpp \
> display3d.cpp \
> matroxmeteorii.cpp
> HEADERS += mainwindow.h \
> thread.h \
> display3d.h \
> core.h \
> matroxmeteorii.h
> FORMS += mainwindow.ui
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140918/adaf9982/attachment.html>
More information about the Insight-users
mailing list