[Insight-users] DigitallyReconstructedRadiograph1 Cmakelist

Dženan Zukić dzenanz at gmail.com
Wed Jul 7 04:40:42 EDT 2010


Hi Michael,

I attached my CMakeLists.txt, which is relatively simple - just remove the
parts you don't need and adjust the rest to your needs.

Regards,
Dženan

2010/7/7 michael ma <michael8446 at 126.com>

> Dear all,
>
> I am trying to make DRR using  DigitallyReconstructedRadiograph1.cxx from
> itk\InsightToolkit\Examples\Filtering by ITK and VTK.
> BUT I meet difficulties in writing Cmakelist.
> Does anyone know how to write it?
>
> thank you in advance for any help.
>
> best
> Ma
>
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100707/db22cd0f/attachment.htm>
-------------- next part --------------
cmake_minimum_required(VERSION 2.6)

add_subdirectory(qe)
INCLUDE_DIRECTORIES(qe)
add_subdirectory(hpmc)
INCLUDE_DIRECTORIES(hpmc)

PROJECT(Spine CXX)

FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})

FIND_PACKAGE(OpenSceneGraph COMPONENTS OpenThreads osg osgUtil osgGA osgDB osgViewer osgVolume)
include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})

FIND_PACKAGE( OSGWorks COMPONENTS osgwTools )
include_directories(${OSGWORKS_INCLUDE_DIR})

FIND_PACKAGE(Qt4)
SET(QT_USE_QTOPENGL 1)
SET(QT_USE_QTDESIGNER ON)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
   
SET(SAMPLE_SRCS Spine.cxx AdapterWidget.h AdapterWidget.cpp mainWindow.cpp MainLogic.cpp slicePainter.cpp marching.h marching.cpp marchingGPU.h marchingGPU.cpp itkDatImageIO.cxx itkDatImageIO.h itkDatImageIOFactory.cxx itkDatImageIOFactory.h)
SET(SAMPLE_MOC_HDRS mainWindow.h MainLogic.h slicePainter.h)
SET(SAMPLE_UIS mainWindow.ui slicePainter.ui)
SET(SAMPLE_RCS mainWindow.qrc)

QT4_ADD_RESOURCES( SAMPLE_RC_SRCS ${SAMPLE_RCS} )
QT4_WRAP_UI( SAMPLE_UI_HDRS ${SAMPLE_UIS} )
QT4_WRAP_CPP( SAMPLE_MOC_SRCS ${SAMPLE_MOC_HDRS} )
  
ADD_EXECUTABLE(Spine ${SAMPLE_SRCS} ${SAMPLE_MOC_HDRS} ${SAMPLE_MOC_SRCS} ${SAMPLE_RC_SRCS} ${SAMPLE_UI_HDRS})

TARGET_LINK_LIBRARIES(Spine ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(Spine ${OPENSCENEGRAPH_LIBRARIES})
TARGET_LINK_LIBRARIES(Spine ${OSGWORKS_LIBRARIES})
TARGET_LINK_LIBRARIES(Spine ITKCommon ITKIO ITKBasicFilters)
TARGET_LINK_LIBRARIES(Spine QuadEdge)
TARGET_LINK_LIBRARIES(Spine hpmc)


More information about the Insight-users mailing list