[cable] Re: [Cmake] wrapping with cable: multiple groups into one package (= one dll)

Brad King brad.king at kitware.com
Wed Mar 26 08:44:14 EST 2003


> If I understand the system of packages and groups right, then the CABLE
> "hirarchy" is "package" over "group", where every group has to be listed
> in the "groups"-array once through all the wrapper-config-files.

This is correct, but you should have "package=..." and "groups=..." in
only ONE file over ALL files being linked into the same library.  The
"package" corresponds to a library.  The "group" corresponds to a single
invocation of cable on one config file.

> So if I want to pack several subdirectories, each represented by a group
> of wrappers, into a package [snip]

You want this:

wrap_config_file_0.cxx:
... package = "thePackage";
... groups[] = {"wrappergroup1", "wrappergroup2", ...};

wrap_config_file_1.cxx:
... group = "wrappergroup1";

wrap_config_file_2.cxx:
... group = "wrappergroup2";

The directory-structure relationship does not matter once these are linked
into a single library.

-Brad




More information about the cable mailing list