Skip to content

Commit

Permalink
[doc] Update the cmake build documentation for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Reis <[email protected]>
  • Loading branch information
engdoreis committed Jan 31, 2025
1 parent ce4df74 commit 634474d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
19 changes: 19 additions & 0 deletions docs/BuildSystems/Build.CMake.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,22 @@ cmake --build DebugOpenSSL32

If everything went well, you should have a working Simulator.exe in:
`TPMCmd\DebugOpenSSL32\install\bin\Simulator.exe`

## Linux + OpenSSL using command-line cmake

1. Install cmake, gcc and openssl using the linux distribution package manager.
2. Setup the CMake build environment
```
cmake -S TPMCmd/. -B TPMCmd/build/.
```
This tells CMake to set the top level of the Source tree to TPMCmd/ and create a Build
directory "TPMCmd/build/"

4. Execute the build
Instruct CMake to build the build environment just created.
```
cmake --build TPMCmd/build/.
```

If everything went well, you should have a working binary in:
`TPMCmd\build\Simulator`
5 changes: 2 additions & 3 deletions docs/BuildSystems/BuildIntro.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ subject to the [Contributing Guidelines](../../CONTRIBUTING.md)
| AutoTools | Linux | YES, Deprecation planned |
| AutoTools | MacOsX | NO |
| CMake | Windows | YES |
| CMake | Linux | NO, Future plan |
| CMake | Linux | YES |
| Visual Studio 2017 | Windows | YES, Deprecation planned |
| Visual Studio 2022 | Windows | NO, Future plan |

## Future Work

As implied by the table above, CMake is expected to replace AutoTools support,
and VS2022 will replace VS2017.
As implied by the table above VS2022 will replace VS2017.

## Code Layout

Expand Down

0 comments on commit 634474d

Please sign in to comment.