yipo
9/11/2018 - 10:57 AM

cmake.bat

My UVa problem solving configuration

cmake_minimum_required(VERSION 3.0)

project(uva)
file(GLOB SRC problem/*.cpp)
add_executable(uva ${SRC})

@path %ProgramFiles%\Git\bin;%ProgramFiles%\CMake\bin
@pushd %~dp0

@if not exist problem git init problem

@if not exist build md build
@cd build

cmake %* ..

@popd
@pause