Skip to content
  • Dominik Thoennes's avatar
    Replaced `waLBerla_python_file_generates` with `waLBerla_generate_target_from_python` · f30f0fa4
    Dominik Thoennes authored
    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 OUT_FILES Kernel.h Kernel.cpp)
    waLBerla_add_executable ( NAME AppNameGeneratedLibTest DEPENDS GeneratedLib)