Making a master CMakeLists.txt
We have a huge 107 package ROS project, and due to various issues regarding multi-platform and versions and build machine configurations, we have lots of OpenCV version issues. Futhermore, there are lots of boilerplate code, such as setting up CUDA, that get repeated in many files.
So, is there an easy way to place a CMakeLists.txt
in, say, the root directory and have it automatically included?
Note, this solution from StackOverflow could work, but can I avoid having to edit 107 CMakeLists.txt
s, including making sure I get the right number of ../
s, since we have a multi-level build tree?