
if(LBM_ITK_EXTENSION)
  set(LBMITK_H_FILES "LBMITK.h")
  set(LBMITK_CPP_FILES "LBMITK.cpp")
  list(APPEND LBM_DEPENDS ${ITK_LIBRARIES})
endif()

if(LBM_VTK_EXTENSION)
  set(LBMVTK_H_FILES "LBMVTK.h")
  set(LBMVTK_CPP_FILES "LBMVTK.cpp")
  list(APPEND LBM_DEPENDS ${VTK_LIBRARIES})
endif()

if(WIN32)
  list(APPEND LBM_DEPENDS Dirent)
endif()

add_library_ex(LBM
  H_FILES
    "LBM.h"
    "FileUtils.h"
    ${LBMITK_H_FILES}
    ${LBMVTK_H_FILES}
  CPP_FILES
    "LBM.cpp"
    "LBMVerification.cpp"
    "FileUtils.cpp"
    ${LBMITK_CPP_FILES}
    ${LBMVTK_CPP_FILES}
  CUDA_FILES
    "LBM.cu"
  DEPENDS
    ${LBM_DEPENDS}
    Eigen3::Eigen
  #VERBOSE
)
