Skip to content

Commit 4c76a89

Browse files
committed
CMake: Add install commands for linux
Signed-off-by: Shashank Verma <[email protected]>
1 parent 73581fc commit 4c76a89

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ So the only bottleneck is your disk read/write speed.
1414

1515
### Installing CLI
1616

17-
#### Windows
17+
```bash
18+
git clone https://github.com/shank03/XORCryptor.git -b cli
19+
cd XORCryptor
20+
```
1821

19-
- You have MSVC installed for compilation
22+
#### Windows
2023

21-
- ```bash
22-
git clone https://github.com/shank03/XORCryptor.git -b cli
23-
cd XORCryptor
24-
install.bat
25-
```
24+
- Make sure have MSVC 2022 installed for compilation
25+
- Run `install.bat` as administrator
2626
- Add `C:\Program Files\XORCryptor\bin` to environment variables
2727

28+
#### Linux
29+
- Make sure you have `gcc g++ make cmake ninja-build`
30+
- Run `sudo ./install.sh`
31+
2832
## Usage
2933

3034
It will ask for key everytime you encrypt or decrypt some file

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \
4+
-DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc \
5+
-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -S. -Bbuild -G Ninja &&
6+
cmake --build "build" --config Release --target clean -j 10 && cmake --build "build" --config Release --target install -j 10

0 commit comments

Comments
 (0)