[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.
More information about the Insight-users
mailing list