[Insight-users] how to add other libraries into cmake
Bing Jian
jbing at ufl . edu
Fri, 21 Nov 2003 13:52:41 -0500
Hello,
Last week I posted a similar question, but am still confused about it.
Say I have a simple project with CMakeLists.txt as follows:
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)
LINK_LIBRARIES (
ITKBasicFilters
ITKCommon
ITKIO
ITKNumerics
)
PROJECT(ITKTestApplication)
ADD_EXECUTABLE(TestApp1 TestApp1.cxx)
TARGET_LINK_LIBRARIES(TestApp1 ITKCommon)
Yeah, it works. Now, I am going to include some functions
from other libraries such as fftw, libtiff, etc. What should
I do in CMakeLists.txt?
Thanks!