[CMake] directory structure of framework headers

Gustavo G gustavo.ggutierrez at gmail.com
Tue Aug 18 05:37:49 EDT 2009


Hello,


I am trying to create a framework in cmake, the only problem I have so  
far is that directory structure of the public headers is not kept. For  
example, suppose my headers are declared as

set(my_HDRS
	h1.hh
	var/h1.hh
	var/h2.hh
	var-imp/h1.hh
	var-imp/h2.hh)

of course, there are three different h1.hh files in this case, but all  
of the reside in different places. When I use:

set_target_properties(my PROPERTIES PUBLIC_HEADER  "${my_HDRS}"
		FRAMEWORK true)

everything goes well but in the resulting framework there are no  
directories "var" nor "var-imp" inside the public headers. As far as I  
can see all the files are grouped into one directory.

Is there any way to let cmake know that I want to have "var" and "var- 
imp" as subdirectories in the public headers with the corresponding  
files inside?


kind regards,
Gustavo


More information about the CMake mailing list