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-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
Brett Delle Grazie
Sent: Tuesday, September 18, 2012 4:35 PM
To: cmake@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?

--

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to