[CMake] setting different include_directories, link_directories, etc for different targets

Kuba Bican kuba at smyslzivota.cz
Thu Mar 26 08:22:11 EDT 2009


Yes, this is one of the possibilities which does not solve the problem
very nice ... or is it possible to have the final generated projects
in one solution, with one "BUILD_ALL" and "RUN_TESTS" and all the
things around?

Thanks,

    Jakub


2009/3/26 Denis Scherbakov <denis_scherbakov at yahoo.com>:
>
> You should setup a separate build directory for each platform and run CMake there with configuration options you want.
>
> Denis
>
>
>> I would like to build the same source tree for different
>> platforms. A
>> platform means various embedded OSes, WIN32, etc.
>> Compilation for each
>> platform may differ by includes and libs used as well as
>> some
>> toolchain and compile options changes. There are some minor
>> platform
>> changes in the code handled by conditional compilation.
>
>
>
>
>


More information about the CMake mailing list