# Find ITK INCLUDE (${CMAKE_ROOT}/Modules/FindITK.cmake) # Use ITK. This sets up include/link directories for us. IF (USE_ITK_FILE) INCLUDE(${USE_ITK_FILE}) ENDIF(USE_ITK_FILE) SET( LOCAL_MODULE_SRCS vtkITKKullbackLeiblerTransform.cxx ) ## classes that one does not want tcl wrapped SET ( LOCAL_NO_WRAP_SRCS #vtkMyClassNoWrap.cxx ) # Place names of abstract class implementations here. No file suffixes. # Comment this out if there are no abstracts. # replaced ABSTRACT_FILES from cmake before 1.6 #SET_SOURCE_FILES_PROPERTIES ( ##vtkMyAbstractClass1.cxx ##ABSTRACT #) # You can add additional include paths here INCLUDE_DIRECTORIES( # ${VTKSLICERBASE_SOURCE_DIR}/cxx # ${VTKSLICERBASE_SOURCE_DIR}/KL # ${VTKSLICERBASE_BUILD_DIR} ) #### if you code depends on SlicerBase, uncomment the #### INCLUDE_DIRECTORIES and LINK_LIBRARIES #### lines below #### #INCLUDE_DIRECTORIES( # ${VTKSLICERBASE_SOURCE_DIR}/cxx # ${VTKSLICERBASE_BUILD_DIR} #) #LINK_LIBRARIES (${VTKSLICERBASE_BUILD_LIB}) # Add additional directories to look in for libraries LINK_DIRECTORIES( ${VTKMYCLASS_SOURCE_DIR}/lib ) # To add a list of additional libraries you need to link with, uncomment # the following line. The library names should omit the "lib" and any # trailing suffix. # LINK_LIBRARIES (${LOCAL_LIBRARY_BASENAME} library_names_here) ADD_LIBRARY (${LOCAL_LIBRARY_BASENAME} ${LOCAL_MODULE_SRCS} ${LOCAL_NO_WRAP_SRC}) # Add additional directories to look in for libraries LINK_DIRECTORIES( #${VTKMYCLASS_SOURCE_DIR}/lib ) TARGET_LINK_LIBRARIES ( ${LOCAL_LIBRARY_BASENAME} ITKAlgorithms ITKNumerics ITKCommon ITKBasicFilters ITKNumerics ITKBasicFilters )