On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein <[email protected]> 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
_______________________________________________
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

Reply via email to