# brl/bbas/imesh/CMakeLists.txt
# indexed mesh library

doxygen_add_library(contrib/brl/bbas/imesh
  DEPENDS core/vgl core/vul
  PACKAGE contrib/brl
  DESCRIPTION "Brown Indexed Mesh Library"
  )

SET(imesh_sources
  imesh_vertex.cxx             imesh_vertex.h
  imesh_face.cxx               imesh_face.h
  imesh_half_edge.cxx          imesh_half_edge.h
  imesh_mesh.cxx               imesh_mesh.h

  imesh_fileio.cxx             imesh_fileio.h
  imesh_operations.cxx         imesh_operations.h
  imesh_detection.cxx          imesh_detection.h
)

AUX_SOURCE_DIRECTORY(Templates imesh_sources)

ADD_LIBRARY(imesh  ${imesh_sources})

TARGET_LINK_LIBRARIES(imesh vgl vul brdb vbl_io vbl)

# Algorithms
SUBDIRS( algo )

IF( BUILD_TESTING )
  SUBDIRS(tests)
ENDIF( BUILD_TESTING )

INSTALL_TARGETS(/lib imesh)
INSTALL_NOBASE_HEADER_FILES(/include/vxl/contrib/brl/bbas/imash/ ${imesh_sources})

