[ITK] [ITK-users] cannot find -lITKNumerics

Ais lsustc at mail.ustc.edu.cn
Fri May 15 08:16:52 EDT 2015


Thanks for you help. Following  my CMake.list:


ROJECT( MedicalImageAnalysis )

FIND_PACKAGE(ITK)
IF(ITK_FOUND)
  INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
  MESSAGE(FATAL_ERROR
          "Cannot build InsightApplications without ITK.  Please set
ITK_DIR.")
ENDIF(ITK_FOUND)

SET(LIB_SRCS ./libsrc/image3d.cxx ./libsrc/deformation3d.cxx
./libsrc/imagefunctions.cxx ./libsrc/point.cxx 
./libsrc/globaltransformation.cxx ./libsrc/globaltransformationfunctions.cxx
./libsrc/image4d.cxx ./libsrc/image4dfunctions.cxx
./libsrc/commonfunctions.cxx ./libsrc/interpolationweight.cxx)

INCLUDE_DIRECTORIES(
./include
)

LINK_DIRECTORIES(
./libsrc
)

ADD_DEFINITIONS(-Wall -O2 -static)

ADD_LIBRARY(MedicalImageAnalysisLib ${LIB_SRCS})

ADD_EXECUTABLE(LinuxCutImage ./src/LinuxCutImage.cxx)

TARGET_LINK_LIBRARIES(LinuxCutImage optimized MedicalImageAnalysisLib
optimized ITKNumerics optimized ITKIO optimized ITKBasicFilters optimized
ITKAlgorithms optimized m)

ADD_EXECUTABLE(LinuxResaveImage ./src/LinuxResaveImage.cxx)

TARGET_LINK_LIBRARIES(LinuxResaveImage optimized MedicalImageAnalysisLib
optimized ITKNumerics optimized ITKIO optimized ITKBasicFilters optimized
ITKAlgorithms optimized m)

#INSTALL(TARGETS test DESTINATION /home/jon/bin/)
Is there something wrong?



--
View this message in context: http://itk-users.7.n7.nabble.com/cannot-find-lITKNumerics-tp35675p35677.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
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.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list