[CMake] Including header files in project list

Zachary Pincus zpincus at stanford.edu
Thu Jun 23 16:55:05 EDT 2005


Hello,

I've been using CMake for a while on the UNIX side. Recently, tempted 
by the new ability to generate XCode project files (great work, by the 
way! Too bad Apple still hasn't documented the format), I switched a 
project over to XCode.

Everything works great, but I can't figure out the "right" way to get 
CMake to include header directories, or files within, to show up in 
XCode's file list. I specified the header directories with 
"INCLUDE_DIRECTORY" commands, but nothing else.

I suppose I could use AUX_SOURCE_DIRECTORY or something to convince 
CMake that these headers and template definitions are sources, and thus 
to include them in the XCode list. Is there a better way, however?

Thanks for your time,

Zach Pincus

Department of Biochemistry and Program in Biomedical Informatics
Stanford University School of Medicine



More information about the CMake mailing list