set(clothbw_sources
  clothBW.cpp
  clothBWFromObjMesh.cpp
)

set(clothbw_headers
  clothBW.h
  clothBWFromObjMesh.h
)

# if(VegaFEM_ENABLE_PTHREADS_SUPPORT)
#   list(APPEND clothbw_headers clothBWMT.h)
#   list(APPEND clothbw_sources clothBWMT.cpp)
# endif()

vega_add_library(clothBW
  SOURCES
    ${clothbw_sources}
  PUBLIC_HEADERS
    ${clothbw_headers}
)

target_link_libraries(clothBW
  PUBLIC
    objMesh
    minivector
    sparseMatrix
    #Threads::Threads
)
