-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (14 loc) · 797 Bytes
/
Copy pathMakefile
File metadata and controls
19 lines (14 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
debug_output = build_debug/
release_output = build_release/
.PHONY: all clean debug release
all: debug release
clean:
rm -rf build_*
debug:
conan install . --output-folder=$(debug_output) --build=missing --profile:build=sse_implementations_debug --profile:host=sse_implementations_debug
cmake -S . -B $(debug_output) -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$(debug_output)/conan_toolchain.cmake"
cmake --build $(debug_output) --config Debug
release:
conan install . --output-folder=$(release_output) --build=missing --profile:build=sse_implementations_release --profile:host=sse_implementations_release
cmake -S . -B $(release_output) -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$(release_output)/conan_toolchain.cmake"
cmake --build $(release_output) --config Release