Modular building of kde modules

Parker Coates parker.coates at
Wed Mar 18 15:38:27 GMT 2009

On Tue, Mar 17, 2009 at 20:03, Matthew Woehlke wrote:
> Parker Coates wrote:
>> I've often wished CMake had a construct equivalent to Python's "if
>> __name__ == '__main__' :" that would let you run certain code only if
>> the current file was being run as the "top level" CMakeLists.txt.
> You mean like this?

Okay, so we've determined that I /can/. The next question is whether I /should/.

Is this a good idea? Will people reading it actually understand what
I'm trying to do? Is there a more elegant alternative?


More information about the kde-core-devel mailing list