<div dir="ltr"><div>hi</div><div><br></div>I am building a shared library project that's composed of many smaller shared library files.<div><br></div><div>Here's the main shared library project and a list of all the sub projects.</div><div><br></div><div><div>SET(HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/headers/main_lib.h)</div><div>SET(SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/main_lib.c)</div><div>SET(TARGET_LIBS core_math point2d line2d quad2d timer_utils)</div><div><br></div><div>ADD_LIBRARY(main_lib SHARED ${SRC_FILES} ${HEADER_FILES})</div><div>TARGET_LINK_LIBRARIES(core_engine ${TARGET_LIBS})</div></div><div><br></div><div>i have each module setup like this.</div><div>module</div><div>module/headers/module.h</div><div>module/module.c</div><div><br></div><div>then the module.c will look like this</div><div>#include "headers/module.h"</div><div><br></div><div>the file main_lib.h depends on all those target libs, which makes my main_lib.h file's include statement look like this</div><div><br></div><div><div>#include "../../module/headers/module.h"</div><div>#include "../../module1/headers/module1.h"<br class="">#include "../../module2/headers/module2.h"<br></div></div><div><br></div><div><br></div><div>is there any way that I can clean up these includes?</div><div><br></div><div>For example if I want to use io functions I can just do #include <stdio.h> or #include <math.h></div><div><br></div><div>for math functions.</div><div><br></div><div>I would like to make my include statements not relative to the files actual location, the way it's currently hard coded.</div></div>