Skip to content

Commit

Permalink
Merge pull request #6 from nicolasaunai/main
Browse files Browse the repository at this point in the history
simplify cmake
  • Loading branch information
UCaromel authored Aug 1, 2024
2 parents 426cc04 + 3365f16 commit 9762a68
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,21 @@ set(SOURCES
src/RiemannSolver.cpp
src/TimeIntegrator.cpp)

set(INCLUDES
src/ConservativeVariables.hpp
src/ConstrainedTransport.hpp
src/EquationOfState.hpp
src/GodunovFlux.hpp
src/Interface.hpp
src/ModularityUtils.hpp
src/PhareMHD.hpp
src/PhysicalConstants.hpp
src/PrimitiveVariables.hpp
src/RiemannSolver.hpp
src/TimeIntegrator.hpp)

add_library(phareMHD SHARED ${SOURCES} ${INCLUDES})


pybind11_add_module(pyMHD pyMHD/pyMHD.cpp)
target_link_libraries(pyMHD PUBLIC phareMHD)


pybind11_add_module(pyMHD pyMHD/pyMHD.cpp
src/ConservativeVariables.cpp
src/ConstrainedTransport.cpp
src/EquationOfState.cpp
src/GodunovFlux.cpp
src/Interface.cpp
src/ModularityUtils.cpp
src/PhareMHD.cpp
src/PhysicalConstants.cpp
src/PrimitiveVariables.cpp
src/RiemannSolver.cpp
src/TimeIntegrator.cpp)




Expand Down

0 comments on commit 9762a68

Please sign in to comment.