[CMake] including paths - basic

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Fri Oct 19 08:55:17 EDT 2007


On Thursday 18 October 2007 19:32, Mark Wyszomierski wrote:
> Hi,
>
> I'm new to cmake, it looks great. Is it possible to include different
> paths conditionally, like:
>
> include_directories (${MY_PROJECT_SOURCE_DIR}/my_lib)
> IF (WIN32)
> include_directories (C:/my_stuff/lib/something)
> ELSE (WIN32)
> include_directories (/usr/lib/something)
> ENDIF (WIN32)

The code looks good, do you have problems with it ?

Alex


More information about the CMake mailing list