![Page 1: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/1.jpg)
How to set up a project in
MS Visual Studio
Institute of Computer Graphics and Algorithms
Vienna University of Technology
![Page 2: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/2.jpg)
A New Project
Institute of Computer Graphics and Algorithms 1
![Page 3: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/3.jpg)
A New Project - Empty Project
Institute of Computer Graphics and Algorithms 2
![Page 4: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/4.jpg)
Adding Source- and Header Files
Institute of Computer Graphics and Algorithms 3
![Page 5: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/5.jpg)
Adding Source- and Header Files
Institute of Computer Graphics and Algorithms 4
![Page 6: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/6.jpg)
Choosing Particular Files
Institute of Computer Graphics and Algorithms 5
![Page 7: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/7.jpg)
Add Shader Files
Institute of Computer Graphics and Algorithms 6
![Page 8: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/8.jpg)
Ignore non-existing Build Rules
Institute of Computer Graphics and Algorithms 7
![Page 9: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/9.jpg)
Just in Case - Exclude from Build
Institute of Computer Graphics and Algorithms 8
![Page 10: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/10.jpg)
Just in Case - Exclude from Build
Institute of Computer Graphics and Algorithms 9
![Page 11: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/11.jpg)
Just in Case - Exclude from Build
Institute of Computer Graphics and Algorithms 10
![Page 12: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/12.jpg)
A Look at the Folders
Institute of Computer Graphics and Algorithms 11
![Page 13: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/13.jpg)
A Look at the Folders
Institute of Computer Graphics and Algorithms 12
![Page 14: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/14.jpg)
A Look at the Folders
Institute of Computer Graphics and Algorithms 13
![Page 15: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/15.jpg)
Prepare to Build
Institute of Computer Graphics and Algorithms 14
![Page 16: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/16.jpg)
Setting Output Directory for the EXE
Institute of Computer Graphics and Algorithms 15
![Page 17: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/17.jpg)
Setting Output Directory for the EXE
Institute of Computer Graphics and Algorithms 16
![Page 18: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/18.jpg)
Setting Output Directory for the EXE
Institute of Computer Graphics and Algorithms 17
![Page 19: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/19.jpg)
Setting Output Directory for the EXE
Institute of Computer Graphics and Algorithms 18
![Page 20: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/20.jpg)
Setting Output Directory for the EXE
Institute of Computer Graphics and Algorithms 19
![Page 21: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/21.jpg)
Adding Include Directories
Institute of Computer Graphics and Algorithms 20
![Page 22: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/22.jpg)
Adding Include Directories
Institute of Computer Graphics and Algorithms 21
![Page 23: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/23.jpg)
Adding Include Directories
Institute of Computer Graphics and Algorithms 22
![Page 24: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/24.jpg)
Adding Include Directories
Institute of Computer Graphics and Algorithms 23
![Page 25: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/25.jpg)
Adding Include Directories
Institute of Computer Graphics and Algorithms 24
![Page 26: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/26.jpg)
Adding Library Directories
Institute of Computer Graphics and Algorithms 25
![Page 27: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/27.jpg)
Adding Library Directories
Institute of Computer Graphics and Algorithms 26
![Page 28: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/28.jpg)
Adding Library Directories
Institute of Computer Graphics and Algorithms 27
![Page 29: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/29.jpg)
Setting Output Exe-File
Institute of Computer Graphics and Algorithms 28
![Page 30: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/30.jpg)
Setting Output Exe-File
Institute of Computer Graphics and Algorithms 29
![Page 31: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/31.jpg)
Adding Necessary Library Files
Institute of Computer Graphics and Algorithms 30
![Page 32: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/32.jpg)
Adding Necessary Library Files
Institute of Computer Graphics and Algorithms 31
![Page 33: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/33.jpg)
Just in Case - Ignoring Certain Libs
Institute of Computer Graphics and Algorithms 32
![Page 34: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/34.jpg)
Setting the Subsystem
Institute of Computer Graphics and Algorithms 33
![Page 35: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/35.jpg)
Setting the Subsystem
Institute of Computer Graphics and Algorithms 34
![Page 36: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/36.jpg)
Setting the Subsystem
Institute of Computer Graphics and Algorithms 35
![Page 37: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/37.jpg)
Choosing the Active Configuration
Institute of Computer Graphics and Algorithms 36
![Page 38: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/38.jpg)
Choosing the Active Configuration
Institute of Computer Graphics and Algorithms 37
![Page 39: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/39.jpg)
Building the Active Configuration
Institute of Computer Graphics and Algorithms 38
Either
press CTRL+F5, or
click the green arrow
![Page 40: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/40.jpg)
The Final Project – Ready to Use
Institute of Computer Graphics and Algorithms 39
![Page 41: How to configure MS Visual Studio - cg.tuwien.ac.at · A New Project Institute of Computer Graphics and Algorithms 1. A New Project - Empty Project Institute of Computer Graphics](https://reader033.vdocuments.site/reader033/viewer/2022050108/5f4651aa27640a26e34d2e7b/html5/thumbnails/41.jpg)
Some Hints
For debug builds use /MTd (or /MDd)
For release builds use /MT (or /MD)
Institute of Computer Graphics and Algorithms 40