[CMake] how to specify dependencies out of the source tree?

Michal Turlik michal_tlk at yahoo.com
Wed Jan 26 17:56:48 EST 2011


ehi nice!
thanks

--- On Wed, 1/26/11, Rolf Eike Beer <eike at sf-mail.de> wrote:

From: Rolf Eike Beer <eike at sf-mail.de>
Subject: Re: [CMake] how to specify dependencies out of the source tree?
To: cmake at cmake.org
Date: Wednesday, January 26, 2011, 7:05 PM

> I thank you so much Eric,
> However I managed this thing and obteined the expected result by writing
> something similar and then including it in my root CMakeLists.txt:
>
> ----- util lib dependency -----
> # -*- Makefile -*-
>
> IF(BUILD_STANDALONE)

For those project I need that I usually do this without the user need to
do something special by:

IF (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)

Eike
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110126/65a0942a/attachment-0001.htm>


More information about the CMake mailing list