Skip to content

Commit

Permalink
add Lorenz example cmake feelpp#1
Browse files Browse the repository at this point in the history
  • Loading branch information
lberti committed Jan 12, 2022
1 parent 8c96abd commit 3920f13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
add_subdirectory(quadratic_model)
add_subdirectory(quadratic_model)
add_subdirectory(lorenz)
# add_subdirectory(clamped_bar)
# add_subdirectory(petsc_clamped_bar)
# add_subdirectory(shallow_water)
9 changes: 9 additions & 0 deletions example/lorenz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_custom_target(lorenz)
ADD_CUSTOM_TARGET(lorenz_sync ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/configuration ${CMAKE_CURRENT_BINARY_DIR}/configuration
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/result ${CMAKE_CURRENT_BINARY_DIR}/result)
add_dependencies(lorenz lorenz_sync)

add_executable(lorenz_forward forward.cpp)
target_link_libraries(lorenz_forward verdandi)
add_dependencies(lorenz lorenz_forward)

0 comments on commit 3920f13

Please sign in to comment.