<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div></div><div><br></div><div>Hello,</div><div><br></div><div>I wonder how I should organize cmake files in my project.</div><div>For the moment, I have organized my project like this:</div><div>==========================</div><div>project/</div><div>    CMakeLists.txt</div><div>    cmake/</div><div>        modules/</div><div>            FindLibrary.cmake</div><div>            MyFunction.cmake</div><div>    src/</div><div>        CMakeLists.txt</div><div>==========================</div><div>If I keep on organizing files like this, the "cmake" directory will only contain a subdirectory named "modules" and dedicated to auxiliary files like custom functions and scripts for the find_package function.</div><div>Actually, it seems to be the case in the installation directory of cmake itself, where a subdirectory named "Modules" contains both functions and scripts for the find_package function.</div><div><br></div><div>Does it make sense to separate functions from scripts for the find_package function?</div><div>Is each script a module in CMake, whatever it contains?</div><div>What are the different kinds of scripts/modules: functions, scripts for the find_package function, configuration files, what else?</div><div><br></div><div>Thank you for your help!</div><div><br></div><div>Cédric</div><div><br></div><div>   </div></div></body></html>