[Insight-users] question on cmake.txt
John Drescher
drescherjm at gmail.com
Wed Mar 24 16:04:00 EDT 2010
On Wed, Mar 24, 2010 at 3:56 PM, Stephen Yip <stephen.fyip1 at gmail.com> wrote:
> 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)
>
Looks fine to me. It should be CMakeLists.txt not cmake.txt though.
John
More information about the Insight-users
mailing list