[CMake] add_library without source code
Ingolf Steinbach
ingolf.steinbach at googlemail.com
Thu Jul 29 04:18:41 EDT 2010
2010/7/29 Michael Wild <themiwi at gmail.com>:
> Where is the main() function? In B?
Yes, it would be in B.
> Perhaps it would be a good idea to not compile it into B, but use the file containing main() as the "required file" instead.
This approach works around the current limitation. But I'd still
consider it suboptimal: for instance, the suite of unit tests for the
product would now require 6 (more or less identical) unit tests (for
each of the main() functions) rather than only one.
Kind regards
Ingolf
More information about the CMake
mailing list