On 2017-07-14 03:33, Florian Lindner wrote:
Now, in the docs I everywhere read not to add the files using GLOB.
However, I have found no definitive guide how to add
project files in a large project with subdirs like that.

How would you do it in cmakeish fashion?

List each file explicitly. For example, see https://github.com/apache/xerces-c/blob/trunk/src/CMakeLists.txt

No potential for inclusion of a stray file which gets globbed unintentionally, and any change to the lists will force cmake to be re-run, and the targets rebuilt.


Regards,
Roger

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to