Hello Mailing List
i am quite new to CMake. I have a project i originally build with
visual studio 2008.
I try to create a cmake Projekt so i can use cmake in the future.
I am using .NET Forms which are Headers with associated resx files. In
Visual-Studio the only
difference between Headers and Forms are that the FileType differs (In
the propierties)
How can I change this for a header via cmake?
# find header in current folder
file (GLOB fhead "*.h")
foreach ( filename ${fhead} )
GET_FILENAME_COMPONENT( filepath ${filename} PATH )
GET_FILENAME_COMPONENT( filebase ${filename} NAME_WE )
SET(Source "${filepath}/${filebase}.cpp")
SET(Res "${filepath}/${filebase}.resx")
if (EXISTS ${Res}) # a resx exists, so it IS a form
SET(FormHeader ${FormHeader} ${filename})
if (EXISTS ${Source}) # there is an additional implementation
file
SET(FormSource ${FormSource} ${Source})
endif (EXISTS ${Source})
endif (EXISTS ${Res})
endforeach ( filename )
With this code i got the forms how i expect it, but every header is
just a Header and not
konwn as formular to visual studio
Hope some may give me a hint.
Thank you very much
Simon
_______________________________________________
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