Skip to content

Commit e54bd1a

Browse files
steven-bellockjyao1
authored andcommitted
Add example for Visual Studio project file
Signed-off-by: Steven Bellock <sbellock@nvidia.com>
1 parent 2ca9617 commit e54bd1a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
- Change LLVM install path to C:/LLVM.
9191
- LLVM13 works good for clang and [libfuzzer](https://llvm.org/docs/LibFuzzer.html) build. Other versions are not validated for clang build.
9292
- Because the libfuzzer lib path is hard coded in CMakeLists, other versions may fail for libfuzzer build.
93-
2) [cmake](https://cmake.org/) (Version [3.17.2](https://github.com/Kitware/CMake/releases/tag/v3.17.2) is known to work. Newer versions may fail).
93+
2) [CMake](https://cmake.org/) (Version [3.17.2](https://github.com/Kitware/CMake/releases/tag/v3.17.2) is known to work. Newer versions may fail).
9494

9595
### Build Tools for Linux
9696

@@ -100,7 +100,7 @@
100100

101101
b) [LLVM](https://llvm.org/) (above LLVM10), install steps: `sudo apt-get install llvm-10` then `sudo apt-get install clang-10`. Use `llvm-ar -version` and `clang -v` to confirm the LLVM version. If LLVM installation fails or LLVM installation version is low, you can update Linux version to fix the issue.
102102

103-
2) [cmake](https://cmake.org/).
103+
2) [CMake](https://cmake.org/).
104104

105105

106106
### Cryptography Library
@@ -137,7 +137,7 @@
137137
nmake
138138
```
139139

140-
Example cmake commands:
140+
Example CMake commands:
141141

142142
```
143143
cmake -G"NMake Makefiles" -DARCH=x64 -DTOOLCHAIN=VS2019 -DTARGET=Debug -DCRYPTO=mbedtls ..
@@ -156,6 +156,12 @@
156156
```
157157

158158
Note ia32 build is not supported for CLANG build on Windows.
159+
160+
CMake can also generate Visual Studio project files. For example:
161+
162+
```
163+
cmake -G"Visual Studio 16 2019" -DARCH=x64 -DTOOLCHAIN=VS2019 -DTARGET=Release -DCRYPTO=mbedtls ..
164+
```
159165

160166
### Linux Builds
161167
If ia32 builds run on a 64-bit Linux machine, then install `sudo apt-get install gcc-multilib`.
@@ -170,7 +176,7 @@
170176
make copy_sample_key
171177
make
172178
```
173-
Example cmake commands:
179+
Example CMake commands:
174180
```
175181
cmake -DARCH=ia32 -DTOOLCHAIN=GCC -DTARGET=Debug -DCRYPTO=openssl ..
176182
```

0 commit comments

Comments
 (0)