0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OpenCV/C++/プロパティシート

Last updated at Posted at 2020-06-11

プロパティシート

プロジェクトの設定をまとめたものです。拡張子 .props

VSでプロパティマネージャを表示して新規作成します。
image.png

ダブルクリックするとダイアログ表示されます。項目はみなれた物なので必要なものを設定します。

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup />
  <ItemDefinitionGroup />
  <ItemGroup />
</Project>

プロジェクト側で設定をいじると、プロパティシート設定が反映されない事があります。
その場合、%(AdditionalIncludeDirectories)を入れるとよいみたいです。
image.png

インクルード AdditionalIncludeDirectories
ライブラリ AdditionalLibraryDirectories

FBXSDKでつかったもの


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup />
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>C:\SDK\fbxsdk\20190\include;C:\SDK\fbxsdk\20190\include\fbxsdk\core;C:\SDK\fbxsdk\20190\include\fbxsdk\scene\constraint;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <Link>
      <AdditionalLibraryDirectories>C:\SDK\fbxsdk\20190\lib\vs2015\x64\debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>libfbxsdk-md.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup />
</Project>

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?