Made sources public

This commit is contained in:
2025-11-20 21:47:38 +00:00
parent e5800ee343
commit 9f531d04c1
2 changed files with 2 additions and 2 deletions

View File

@@ -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]