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. diff --git a/src/main.cpp b/test/main.cpp similarity index 100% rename from src/main.cpp rename to test/main.cpp