diff --git a/mx_convert/mx_convert.py b/mx_convert/mx_convert.py index 1c970dc..b298d35 100644 --- a/mx_convert/mx_convert.py +++ b/mx_convert/mx_convert.py @@ -74,7 +74,7 @@ def recurse_cmakelists(path: Path): if has_headers: 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.append("target_sources(%s PUBLIC"%(CMAKE_TARGET)) lines += ["\t%s"%(src.name) for src in sources] lines.append(")") lines += ["add_subdirectory(%s)"%(directory.name) for directory in dirs] diff --git a/pyproject.toml b/pyproject.toml index 2c04915..925b0d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mx_convert" -version = "0.4.0" +version = "0.4.1" description = "A Cube MX projct conversion helper" authors = [{ name = "Didas72" }] dependencies = []