-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 811 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 811 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
# =============================================================================
# TODO: Add file description
# =============================================================================
# License: MIT
# Author: Yuxuan Zhang (zhangyuxuan@ufl.edu)
# =============================================================================
NAME := SpinnakerCamera
# This is a helper Makefile for CMake Project
DEPS := $(wildcard **/*.cpp)
DEPS += $(wildcard **/*.h)
DEPS += $(wildcard **/*.hpp)
# Make without output
MAKE := make --no-print-directory
examples:
$(eval BUILD_DIR := build/$@/)
@ cmake -S examples -B $(BUILD_DIR) \
&& mv $(BUILD_DIR)/compile_commands.json . \
&& $(MAKE) -C $(BUILD_DIR) -j$(shell nproc --all)
clean:
@ rm -rf build bin
include $(wildcard scripts/*.mk)
.PHONY: examples clean