[CMake] Overriding default source groups
Sylvain Benner
benner at virtools.com
Mon Oct 15 09:10:30 EDT 2007
> I'm wondering what the best way to override the default 'Header Files'
> and 'Source Files' SOURCE_GROUPs? I'm creating SOURCE_GROUPs by hand,
> and I don't want the default ones to be active. Looking at the code, I
> think it might require a source hack, but I thought I'd better check
> first.
You can override the default source groups which rely on regular
expressions by explicitly adding all your sources to a custom source
group, something like this :
SOURCE_GROUP("MP Framework Files" FILES ${TARGET_FILES})
ADD_TARGET_MP(my_target shared FILES ${TARGET_FILES})
--Sylvain
More information about the CMake
mailing list