[CMake] Query regarding header files in CMakeLists.txt

Miller Henry MillerHenry at JohnDeere.com
Tue Sep 18 17:55:56 EDT 2012


On a practical matter though: if the file is not listed someplace, then your IDE may not pick it up.  Thus while it is legal to not list all files, it is a good idea to list them anyway.

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Brett Delle Grazie
Sent: Tuesday, September 18, 2012 4:35 PM
To: cmake at cmake.org
Subject: [CMake] Query regarding header files in CMakeLists.txt

Hi,

Is it necessary to specify header files in add_executable /
add_library entries in CMakeLists.txt?

i.e. does CMake automatically do dependency analysis making this unnecessary?



More information about the CMake mailing list