Skip to content
Snippets Groups Projects
Commit d67ef190 authored by JieunYoon's avatar JieunYoon
Browse files

Add cmake

parent 3f156883
No related branches found
No related tags found
No related merge requests found
add_executable ( led_main led_main.c led_yellow.c led_green.c )
target_link_libraries ( led_main pthread wiringPi )
SRCS := led_main.c led_green.c led_yellow.c
OBJS := $(SRCS:.c=.o)
CC := gcc
#컴파일 옵션
CFLAGS = -Wall -g
#linking 옵션
LDFLAGS = -lpthread -lwiringPi
led_main : $(OBJS)
$(CC) -o $@ $^ ${LDFLAGS}
# dummy target
clean :
-rm $(OBJS)
-rm led_main
dep :
gccmakedep ${SRCS}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment