how to configure ms visual studio - cg.tuwien.ac.at · a new project institute of computer graphics...

41
How to set up a project in MS Visual Studio Institute of Computer Graphics and Algorithms Vienna University of Technology

Upload: others

Post on 14-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Some Hints

For debug builds use /MTd (or /MDd)

For release builds use /MT (or /MD)

Institute of Computer Graphics and Algorithms 40