Use macros/functions to remove duplicate CMake code
schuhschuh opened this issue · 0 comments
schuhschuh commented
All of the CMakeLists.txt files of modules have a very common structure. Most of it could be easily hidden in a few CMake macros/functions included by the top-level CMakeLists.txt file. The src/CMakeLists.txt
files would not be needed as instead there can be a single macro/function call in the module CMakeLists.txt (e.g., Modules/Common/CMakeLists.txt) to add the library target and corresponding installation rules.