1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#---------------------------------------------------------------------
project(KNN)
# Set the files, so that they are shown in the editor
set(KNN_Files
itkListSampleCArray.h
itkListSampleCArray.hxx
itkANNBinaryTreeCreator.h
itkANNBinaryTreeCreator.cxx
itkBinaryTreeBase.h
itkBinaryTreeBase.hxx
itkBinaryANNTreeBase.h
itkBinaryANNTreeBase.hxx
itkANNkDTree.h
itkANNkDTree.hxx
itkANNbdTree.h
itkANNbdTree.hxx
itkANNBruteForceTree.h
itkANNBruteForceTree.hxx
itkBinaryTreeSearchBase.h
itkBinaryTreeSearchBase.hxx
itkBinaryANNTreeSearchBase.h
itkBinaryANNTreeSearchBase.hxx
itkANNStandardTreeSearch.h
itkANNStandardTreeSearch.hxx
itkANNFixedRadiusTreeSearch.h
itkANNFixedRadiusTreeSearch.hxx
itkANNPriorityTreeSearch.h
itkANNPriorityTreeSearch.hxx
)
# process the sub-directories
add_subdirectory(ann_1.1)
# Create the KNN library
add_library(KNNlib STATIC ${KNN_Files})
# Link it against the necessary libraries.
target_link_libraries(KNNlib ANNlib ${ITK_LIBRARIES})
# Group in IDE's like Visual Studio
set_property(TARGET KNNlib PROPERTY FOLDER "libraries")
|