David,
thank you so much!
It does work!
11.02.2011, 18:37, "David Cole" <david.c...@kitware.com>:
On Fri, Feb 11, 2011 at 10:29 AM, John Drescher <dresche...@gmail.com> wrote:> it is what I want.I do not know. Sorry. I did not see that you were trying to add these
> But how?
>
> How can I "put all the directories in EXTERNAL_PRODUCT_INCLUDES" from cmake command line?
>
via the command line. I never use that mode of cmake.
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
You should be able to do:
cmake "-DEXTERNAL_PRODUCT_INCLUDES=/dir a;/dir b;/dirc/include" ../source_directory
And then, inside CMakeLists.txt:
include_directories(${EXTERNAL_PRODUCT_INCLUDES})
Is there a problem you hit with that approach?
--
Best regards,
Ilja Golshtein.
Best regards,
Ilja Golshtein.
_______________________________________________ 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