From 4cc794bc75405315447932163221b4e1e83a5eda Mon Sep 17 00:00:00 2001 From: mattoverby Date: Thu, 21 Aug 2025 13:30:37 -0500 Subject: [PATCH 1/2] Update cmake and readme --- CMakeLists.txt | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40242ff..d26e645 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/README.md b/README.md index 3151655..20c8b21 100644 --- a/README.md +++ b/README.md @@ -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. From 9e9c47911d65a3fff58f25c8d4ea899e9c4993a4 Mon Sep 17 00:00:00 2001 From: mattoverby Date: Thu, 21 Aug 2025 13:38:38 -0500 Subject: [PATCH 2/2] mv main --- {src => test}/main.cpp | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src => test}/main.cpp (100%) diff --git a/src/main.cpp b/test/main.cpp similarity index 100% rename from src/main.cpp rename to test/main.cpp