[Insight-users] question on cmake.txt
Stephen Yip
stephen.fyip1 at gmail.com
Wed Mar 24 15:56:44 EDT 2010
Hi,
I am trying to run the "Hello World" registration. I've tried it numerous
times, but I am still getting some issues while building the executable. I
wonder if I write my cmake.txt correctly. Please see below.
# This is the root ITK CMakeLists file.
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
# This project is designed to be built outside the Insight source tree.
PROJECT(ImageRegistration1)
# Find ITK.
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
ADD_EXECUTABLE(ImageRegistration1 ImageRegistration1.cxx )
TARGET_LINK_LIBRARIES(ImageRegistration1 ITKCommon ITKNumerics)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100324/850d9ec5/attachment.htm>
More information about the Insight-users
mailing list