Replaced `waLBerla_python_file_generates` with `waLBerla_generate_target_from_python`
This new function does the actual generation using pystencils and creates a target library that can be used as a dependency as usual. One should not list the python script itself anymore in add_executable. Convention: Use the AppName as a prefix for the generated lib! Example Usage: waLBerla_generate_target_from_python( NAME AppNameGeneratedLib FILE GenerateKernel.py OUT_FILES Kernel.h Kernel.cpp) waLBerla_add_executable ( NAME AppNameGeneratedLibTest DEPENDS GeneratedLib)
Showing
- apps/benchmarks/CMakeLists.txt 1 addition, 1 deletionapps/benchmarks/CMakeLists.txt
- apps/benchmarks/FluidParticleCoupling/CMakeLists.txt 25 additions, 19 deletionsapps/benchmarks/FluidParticleCoupling/CMakeLists.txt
- apps/benchmarks/UniformGridGPU/CMakeLists.txt 42 additions, 40 deletionsapps/benchmarks/UniformGridGPU/CMakeLists.txt
- apps/benchmarks/UniformGridGenerated/CMakeLists.txt 13 additions, 11 deletionsapps/benchmarks/UniformGridGenerated/CMakeLists.txt
- cmake/waLBerlaFunctions.cmake 6 additions, 70 deletionscmake/waLBerlaFunctions.cmake
- cmake/waLBerlaHelperFunctions.cmake 58 additions, 56 deletionscmake/waLBerlaHelperFunctions.cmake
- python/pystencils_walberla/cmake_integration.py 1 addition, 1 deletionpython/pystencils_walberla/cmake_integration.py
- tests/cuda/CMakeLists.txt 11 additions, 7 deletionstests/cuda/CMakeLists.txt
- tests/field/CMakeLists.txt 3 additions, 2 deletionstests/field/CMakeLists.txt
- tests/lbm/CMakeLists.txt 9 additions, 10 deletionstests/lbm/CMakeLists.txt
Please register or sign in to comment