From 1fab64f8371e33c51404d60b2ad087e62d710d6e Mon Sep 17 00:00:00 2001 From: didas72 Date: Wed, 19 Nov 2025 20:37:09 +0000 Subject: [PATCH] Public include dirs --- mx_convert/mx_convert.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mx_convert/mx_convert.py b/mx_convert/mx_convert.py index 33d375e..caf39d8 100644 --- a/mx_convert/mx_convert.py +++ b/mx_convert/mx_convert.py @@ -75,7 +75,7 @@ def recurse_cmakelists(path: Path): lines: list[str] = [] if has_headers: - lines.append("target_include_directories(%s PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})"%(CMAKE_TARGET)) + lines.append("target_include_directories(%s PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})"%(CMAKE_TARGET)) if len(sources) != 0: lines.append("target_sources(%s PRIVATE"%(CMAKE_TARGET)) lines += ["\t%s"%(src.name) for src in sources] diff --git a/pyproject.toml b/pyproject.toml index 497d5e8..aa8bbd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mx_convert" -version = "0.3.1" +version = "0.3.2" description = "A Cube MX projct conversion helper" authors = [{ name = "Didas72" }] dependencies = []