-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate folder for dependency files
- Loading branch information
Volodymyr Chernetskyi
committed
Oct 6, 2020
1 parent
9d25c19
commit f4dfdd1
Showing
5 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,21 @@ | |
- **C++ compiler** - needs to support **C++17** standard | ||
- **CMake** 3.15+ | ||
|
||
The rest prerequisites (such as development libraries) can be found in the [packages file](./apt_packages.txt) in the form of the apt package manager package names. | ||
Dependencies (such as development libraries) can be found in the [dependencies folder](./dependencies) in the form of the text files with package names for different package managers. | ||
|
||
## Installing | ||
|
||
1. Clone the project. | ||
```bash | ||
git clone [email protected]:chernetskyi/cpp-template.git | ||
``` | ||
2. Install required packages. On Ubuntu: | ||
2. Install required packages. | ||
|
||
On Ubuntu: | ||
```bash | ||
[[ -r apt_packages.txt ]] && sed 's/\r$//' apt_packages.txt | sed 's/#.*//' | xargs sudo apt-get install -y | ||
[[ -r dependencies/apt.txt ]] && sed 's/#.*//' dependencies/apt.txt| xargs sudo apt-get install -y | ||
``` | ||
Use Conan on Windows. | ||
3. Build. | ||
```bash | ||
cmake -Bbuild | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
if (ENABLE_CONAN) | ||
include(cmake/extra/conan.cmake) | ||
conan_cmake_run(CONANFILE conanfile.txt | ||
conan_cmake_run(CONANFILE dependencies/conanfile.txt | ||
BASIC_SETUP CMAKE_TARGETS | ||
BUILD missing) | ||
endif () |
File renamed without changes.
File renamed without changes.