[CMake] From linux to windows?

Johannes Serup tulsoba at gmail.com
Fri May 29 18:16:21 EDT 2009


I have a project written on linux using cmake that I would like to
build on Vista32. In the CMakeLists.txt file there is something like
this:


INCLUDE_DIRECTORIES(/usr/X11R6/include)
INCLUDE_DIRECTORIES(/home/chin/Cpp_Libraries/zlib)
LINK_DIRECTORIES(/usr/X11R6/lib)
LINK_DIRECTORIES(/home/chin/Cpp_Libraries/zlib)

But how do I find the corresponding libs for windows vista? I know
that zlib is avaliable for windows:

http://gnuwin32.sourceforge.net/packages/zlib.htm

But what about:

/usr/X11R6/lib

? Should I install eg. cygwin for this?

It seems a bit against the whole point of cross platform compilation
to have linux dependent libs in a CMakeLists.txt or am I missing
something?


More information about the CMake mailing list