[CMake] multiple directories in one variable
John Drescher
drescherjm at gmail.com
Fri Feb 11 09:24:26 EST 2011
On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein <ilejncs at narod.ru> wrote:
> Hello!
>
> I use a product which (depending on installation type) can keep headers in several directories.
>
> What is the best way to specify these directories?
>
> Do I have better option than variables EXTERNAL_PRODUCT_INCLUDE_1 EXTERNAL_PRODUCT_INCLUDE_2 ...
> listed as
> include_directories(EXTERNAL_PRODUCT_INCLUDE_1 EXTERNAL_PRODUCT_INCLUDE_2) ?
>
> Ideally I want to write -DEXTERNAL_PRODUCT_INCLUDE="dir1 dir2 dir3" cmake-time, but it does not work.
>
I would do
include_directories(EXTERNAL_PRODUCT_INCLUDES)
and put all the directories in EXTERNAL_PRODUCT_INCLUDES
John
More information about the CMake
mailing list