From 6e8c7a0a96d865447c2ef9693f24f2ad22258ffc Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Tue, 16 Jul 2024 14:46:36 +0200 Subject: [PATCH] Fix automatic CMake changes. --- src/language/code_generator.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/language/code_generator.cmake b/src/language/code_generator.cmake index 1cf626fe82..a3dea0767f 100644 --- a/src/language/code_generator.cmake +++ b/src/language/code_generator.cmake @@ -10,6 +10,12 @@ set(CODE_GENERATOR_JINJA_FILES ${PROJECT_SOURCE_DIR}/src/language/templates/ast/ast_decl.hpp ${PROJECT_SOURCE_DIR}/src/language/templates/ast/node.hpp ${PROJECT_SOURCE_DIR}/src/language/templates/ast/node_class.template + ${PROJECT_SOURCE_DIR}/src/language/templates/pybind/pyast.cpp + ${PROJECT_SOURCE_DIR}/src/language/templates/pybind/pyast.hpp + ${PROJECT_SOURCE_DIR}/src/language/templates/pybind/pynode.cpp + ${PROJECT_SOURCE_DIR}/src/language/templates/pybind/pysymtab.cpp + ${PROJECT_SOURCE_DIR}/src/language/templates/pybind/pyvisitor.cpp + ${PROJECT_SOURCE_DIR}/src/language/templates/pybind/pyvisitor.hpp ${PROJECT_SOURCE_DIR}/src/language/templates/visitors/ast_visitor.cpp ${PROJECT_SOURCE_DIR}/src/language/templates/visitors/ast_visitor.hpp ${PROJECT_SOURCE_DIR}/src/language/templates/visitors/checkparent_visitor.cpp @@ -168,6 +174,16 @@ set(AST_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/ast/write_ion_var.hpp ) +set(PYBIND_GENERATED_SOURCES + ${PROJECT_BINARY_DIR}/src/pybind/pyast.cpp + ${PROJECT_BINARY_DIR}/src/pybind/pyast.hpp + ${PROJECT_BINARY_DIR}/src/pybind/pynode_0.cpp + ${PROJECT_BINARY_DIR}/src/pybind/pynode_1.cpp + ${PROJECT_BINARY_DIR}/src/pybind/pysymtab.cpp + ${PROJECT_BINARY_DIR}/src/pybind/pyvisitor.cpp + ${PROJECT_BINARY_DIR}/src/pybind/pyvisitor.hpp +) + set(VISITORS_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/visitors/ast_visitor.cpp ${PROJECT_BINARY_DIR}/src/visitors/ast_visitor.hpp @@ -186,6 +202,7 @@ set(VISITORS_GENERATED_SOURCES set(NMODL_GENERATED_SOURCES ${AST_GENERATED_SOURCES} + ${PYBIND_GENERATED_SOURCES} ${VISITORS_GENERATED_SOURCES} ) # cmake-format: on