Skip to content

Commit

Permalink
separate classes into separate folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Huangzizhou committed Jun 30, 2024
1 parent fe02e7e commit 96420e6
Show file tree
Hide file tree
Showing 17 changed files with 1,823 additions and 1,283 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ include(polyfem_data)
################################################################################
# Subdirectories
################################################################################
add_library(polyfempy MODULE src/binding.cpp src/raster.cpp)
pybind11_add_module(polyfempy)
add_subdirectory(src)
target_include_directories(polyfempy PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src")
target_link_libraries(polyfempy PRIVATE polyfem::polyfem pybind11::module pybind11::json)

set_target_properties(polyfempy PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}" SUFFIX "${PYTHON_MODULE_EXTENSION}")




16 changes: 16 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set(SOURCES
binding.cpp
raster.cpp
)

source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" PREFIX "Source Files" FILES ${SOURCES})
target_sources(polyfempy PRIVATE ${SOURCES})

################################################################################
# Subfolders
################################################################################

add_subdirectory(differentiable)
add_subdirectory(mesh)
add_subdirectory(state)
add_subdirectory(solver)
Loading

0 comments on commit 96420e6

Please sign in to comment.