forked from franneck94/CppProjectTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 795 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ifeq '$(findstring ;,$(PATH))' ';'
CONAN_FLAGS = -s compiler='Visual Studio' -s compiler.version=16 -s cppstd=17 --build missing
else
CONAN_FLAGS = -s cppstd=17 --build missing
endif
all: prepare
install_min:
sudo apt-get install gcc g++ cmake make doxygen
install_tests: install_min
sudo apt-get install gcovr lcov
install: install_min install_tests
sudo apt-get install git llvm pkg-config curl zip unzip tar python3-dev clang-format clang-tidy cppcheck iwyu
install_pip:
pip install jinja2 Pygments cmake-format pre-commit
install_doc: install_min
sudo apt-get install doxygen
pip install jinja2 Pygments
setup:
pip install conan --user
conan user
prepare:
rm -rf build
mkdir build
prepare_conan:
rm -rf build
mkdir build
cd build && conan install .. $(CONAN_FLAGS)