[CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?
Bill Hoffman
bill.hoffman at kitware.com
Fri May 30 11:38:24 EDT 2008
Stefan Buschmann wrote:
> Hi all!
>
> I'm trying to build my project on Windows using "GNU Makefiles" and
> cl.exe under Cygwin. I'm using CMake-2.6-patch 0 and Microsoft Visual
> Studio 2008 Professional.
Here is my setup:
export CC=cl
export CXX=cl
export INCLUDE="C:\Program Files\Microsoft Visual Studio
9.0\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio
9.0\VC\INCLUDE;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\include;"
export LIB="C:\Program Files\Microsoft Visual Studio
9.0\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio
9.0\VC\LIB;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib;"
export
LIBPATH="C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program
Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Program
Files\Microsoft Visual Studio 9.0\VC\LIB;"
export PATH=/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\
9.0/Common7/IDE:/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\
9.0/VC/BIN:/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\
9.0/Common7/Tools:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v3.5:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727:/cygdrive/c/Program\
Files/Microsoft\ Visual\ Studio\ 9.0/VC/VCPackages:/cygdrive/c/Program\
Files//Microsoft\
SDKs/Windows/v6.0A/bin:/cygdrive/c/emacs/emacs-21.3/bin/:${PATH}
Works fine.
-Bill
More information about the CMake
mailing list