Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ file(GLOB SRC
# Create binary
if (NOT CLOTH_TESTING_ONLY)
igl_include(glfw)
add_executable(${PROJECT_NAME} ${SRC})
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/test/main.cpp ${SRC})
target_link_libraries(${PROJECT_NAME} PUBLIC igl::glfw)
endif()

# Unit testing (work in progress)
enable_testing()
add_executable(cloth_test ${CMAKE_CURRENT_SOURCE_DIR}/test/test.cpp)
add_executable(cloth_test ${CMAKE_CURRENT_SOURCE_DIR}/test/test.cpp ${SRC})
target_link_libraries(cloth_test PUBLIC igl::core)
add_test(NAME TestClothSolver COMMAND cloth_test)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ that is computed at the beginning of the time step. Computing a frame of animati
### Interface

Below we lay out the steps to produce an optimization-based solver for implicit cloth simulation.
The dependencies will be fetched through a [DownloadProject](https://github.com/Crascit/DownloadProject) CMake script.
The dependencies will be downloaded using a [FetchContent](cmake/libigl.cmake) CMake script.
[Eigen](https://eigen.tuxfamily.org) is used for linear algebra, which is an industry standard library for vector math.
Rendering and mesh I/O is handled with [libigl](https://libigl.github.io) which also contains many excellent routines for mesh processing.
In libigl, meshes are stored as two dense matrices, an nx3 matrix for vertices and an mx3 matrix for faces.
Expand Down
File renamed without changes.