pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

CMakeLists.txt should use GLOB #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Use CMake's GLOB capability in CMakeLists.txt files to automatically pick up 
all .cpp and .h files. This will avoid touching CMakeLists.txt every time we 
add a new file or change its name.

Original issue reported on code.google.com by SkewMat...@gmail.com on 7 Apr 2013 at 8:06

GoogleCodeExporter commented 9 years ago
From CMake documentation for FILE(GLOB...):

(We do not recommend using GLOB to collect a list of source files from your 
source tree. If no CMakeLists.txt file changes when a source is added or 
removed then the generated build system cannot know when to ask CMake to 
regenerate.)

Original comment by SkewMat...@gmail.com on 17 Apr 2013 at 8:28