1. CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

  2. PROJECT (Design)


  3. SET (SRCS state.cxx)
  4. ADD_EXECUTABLE (state ${SRCS})


  1. @echo off
    SET VS2010="F:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"


    call %VS2010%


    rd /s /q build


    mkdir build
    cd build


    cmake -G "NMake Makefiles" ..\
    nmake


    cd ..


10-03 19:17