[Cmake] Recommended way to check for header and library availability

William A. Hoffman billlist at nycap.rr.com
Fri, 05 Mar 2004 09:58:30 -0500


FIND_FILE and FIND_LIBRARY commands would be a good place to start.
You may also want to look in the Modules directory of cmake and
see how many other libraries and headers are found.

-Bill


At 08:54 PM 3/4/2004, Gerard Beekmans wrote:
>Hi guys,
>
>Got a quick question for you guys.
>
>I'd like cmake to check for a number of header file and libraries when I
>run "cmake ." in a project directory. At the moment the compile process
>will abort at some point due to missing header files and it'd be nice to
>know this up front. Same with library files. Eventually a link error
>will come up but I'd like to be told about these dependency issues
>before I start the compile process.
>
>Any pointers would be greatly appreciated.
>
>Thanks,
>
>-- 
>Gerard Beekmans
>
>/* If Linux doesn't have the solution, you have the wrong problem */
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake