티스토리 뷰

프로그래밍

MSBuild C++ 예제 2/2

두덕리온라인 2017. 3. 28. 21:59
728x90
반응형

Target을 직접 만들지 않고 import하여 사용하는 MSBuild C++ 샘플 #2

IDE에서 기본적으로 사용하는 Build/Rebuild/Clean Target을 사용한다.


<Project DefaultTargets="Build" ToolsVersion="4.0"

xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <ItemGroup>

    <ProjectConfiguration Include="Debug|Win32">

      <Configuration>Debug</Configuration>

      <Platform>Win32</Platform>

    </ProjectConfiguration>

    <ProjectConfiguration Include="Release|Win32">

      <Configuration>Release</Configuration>

      <Platform>Win32</Platform>

    </ProjectConfiguration>

  </ItemGroup>

  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.default.props" />

  <PropertyGroup>

    <ConfigurationType>Application</ConfigurationType>

    <ShowAllFiles>false</ShowAllFiles>

  </PropertyGroup>

  <Import Project="$(VCTargetsPath)/Microsoft.Cpp.props" />

  <ItemGroup>

    <ClCompile Include="main.cpp" />

  </ItemGroup>

  <ItemGroup>

    <ClInclude Include="main.h" />

  </ItemGroup>  

  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Targets" />

</Project>

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday