https://github.com/simdjson/cmake_demo_single_file
Really simple CMake demo
https://github.com/simdjson/cmake_demo_single_file
Last synced: about 2 months ago
JSON representation
Really simple CMake demo
- Host: GitHub
- URL: https://github.com/simdjson/cmake_demo_single_file
- Owner: simdjson
- License: apache-2.0
- Created: 2020-08-17T16:04:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T21:54:08.000Z (over 2 years ago)
- Last Synced: 2025-10-09T16:34:50.675Z (6 months ago)
- Language: CMake
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmake_demo_single_file
Really simple CMake demo using FetchContent
If you have a recent version of CMake (3.15 or better) under linux, macOS or freeBSD, you can simply
go in the directory and type the following commands:
```
cmake -B build .
cmake --build build
./build/repro
```
The instructions with Visual Studio (Windows) are similar:
```
cmake -B build .
cmake --build build --config Release
./build/Release/repro.exe
```
## Getting CMake
1. On macOS, the easiest way to install cmake might be to use [brew](https://brew.sh) and then type
```
brew install cmake
```
2. Under Linux, you might be able to install CMake as follows:
```
apt-get update -qq
apt-get install -y cmake
```
3. On FreeBSD, you might be able to install bash and CMake as follows:
```
pkg update -f
pkg install bash
pkg install cmake
```
4. Under Windows, you may want to install [CMake](https://cmake.org/download/) using an installer.
## Using submodules
[You can also use simdjson as a submodule-based dependency.](https://github.com/simdjson/cmakedemo)