Skip to content

Instantly share code, notes, and snippets.

@itsuart
Last active February 27, 2019 05:34
Show Gist options
  • Save itsuart/0f24c262f65a4a5a8935805bda4c7fcf to your computer and use it in GitHub Desktop.
Save itsuart/0f24c262f65a4a5a8935805bda4c7fcf to your computer and use it in GitHub Desktop.
VisualStudio C++ project settings
Output Directory:
$(ProjectDir)bin\$(PlatformShortName)-$(Configuration)\
Intermediate Directory:
$(ProjectDir)obj\$(PlatformTarget)-$(Configuration)\
Target Name:
$(ProjectName)-$(PlatformShortName)
to refer subproject output:
"$(SolutionDir)SUBPROJECT\bin\$(PlatformShortName)-$(Configuration)\"
To generate static library out of project's object files, add this to post-build event:
lib /LTCG /OUT:"$(ProjectDir)bin\$(PlatformShortName)-$(Configuration)\$(TargetName)-static.lib" "$(ProjectDir)obj\$(PlatformTarget)-$(Configuration)\*.obj"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment