[CMake] using cmake on windows - query on existing targets

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 15 15:12:53 EST 2010


Chauhan, Vikas wrote:
> Hi David/Bill,
> 
>  
> 
> I removed the extra set of “”. I am not sure how they came into L
> 


Can you try this:


1. Create a new directory:
mkdir foo
2. Create a CMakeLists.txt file in foo
project(foo)
add_library(foo bar.c)

Create an empty file bar.c.

3. Create a build directory under foo:
mkdir build

4. run cmake

cd build
cmake -G"NMake Makefiles" ..


Also, is there a CMakeCache.txt file in 
C:/Work/PCT_LTE/Hercules/CID/MapperGenerator?

What is in the CMakeCache.txt in 
C:\Work\PCT_LTE\Hercules\CID\MapperGenerator\build_nmake?


-Bill


-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list