Public include dirs
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user