pyccel.codegen.build_generation.cmake_gen module

pyccel.codegen.build_generation.cmake_gen module#

A module to handle everything related to CMake for the pyccel make command.

class pyccel.codegen.build_generation.cmake_gen.CMakeHandler(*args, **kwargs)[source]#

Bases: BuildSystemHandler

A class providing the functionalities to handle a CMake build system.

A class providing the functionalities to generate CMake build system files and compile a CMake project.

Parameters:
  • *args – See BuildSystemHandler.

  • **kwargs – See BuildSystemHandler.

compile()[source]#

Use CMake to compile the project.

Use CMake to compile the project.

generate(expr)[source]#

Generate all CMakeLists.txt files necessary to describe the project.

Generate all CMakeLists.txt files necessary to describe the project to CMake. With these files it should be possible to compile the project using CMake.

Parameters:

expr (BuildProject) – A BuildProject object describing all necessary build information for the project.