visual studio cmakelists

来源:互联网 发布:java quartz 实例 编辑:程序博客网 时间:2024/06/06 14:24

@echo off
::
:: run this batch file to create a Visual Studio solution file for this project.
:: See the cmake documentation for other generator targets
::
cmake -G "Visual Studio 12 Win64" .\source && cmake-gui .\source



@echo off
if "%VS120COMNTOOLS%" == "" (
  msg "%username%" "Visual Studio 12 not detected"
  exit 1
)
if not exist GANG.sln (
  call make-solutions.bat
)
if exist GANG.sln (
  call "%VS120COMNTOOLS%\..\..\VC\vcvarsall.bat"
  MSBuild /property:Configuration="Release" GANG.sln
  MSBuild /property:Configuration="Debug" GANG.sln
  MSBuild /property:Configuration="RelWithDebInfo" GANG.sln
  MSBuild /property:Configuration="MinSizeRel" GANG.sln
)



OPTION(USE_VDPAU "Use VDPAU hardware decode voideo" ON)
IF(USE_VDPAU)
    ADD_DEFINITIONS(-DUSE_VDPAU)
ENDIF(USE_VDPAU)

0 0
原创粉丝点击