[CMake] Create library and executable with libraries but no source files

Andreas Pakulat apaku at gmx.de
Fri Nov 14 09:32:59 EST 2008


On 14.11.08 15:05:17, s.bedouet at voila.fr wrote:
> I would like to create a library (static or shared) and an executable
> with only libraries (static) but no sources files.

That doesn't make sense. An executable always needs the main() function,
which a library doesn't have.

A library without sources otoh simply is a non-existing file. If all your
code is in the headers, then you don't need a library, just install the
headers.

Andreas

-- 
Celebrate Hannibal Day this year.  Take an elephant to lunch.


More information about the CMake mailing list