[CMake] error: multiple declaration of main
Maik Beckmann
beckmann.maik at googlemail.com
Wed Jan 28 07:50:32 EST 2009
Am Mittwoch 28 Januar 2009 schrieb ankit jain:
> Then how to include those files containg main() function. anyhow we have
> create a libraries for it. what is the way to create libraries from those.
Alter the source files to make them usable as part of a library and as a
program on its own.
#ifdef STANDALONE_APP
int main(){
...
}
#endif // STANDALONE_APP
-- Maik
More information about the CMake
mailing list