use Conan PM

This commit is contained in:
Alexander Popov 2022-08-28 21:58:39 +03:00
parent 008cb237bf
commit 0ddf1ef1d7
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C
3 changed files with 14 additions and 1 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
conan.lock
conanbuild*
conaninfo.txt
graph_info.json

View File

@ -1,3 +1,5 @@
include conanbuildinfo.mak
CC = clang
CFLAGS = -O2
LIBS = -lcjson
@ -5,7 +7,9 @@ LIBS = -lcjson
all: make-libs-list
make-libs-list:
$(CC) $(CFLAGS) make-libs-list.c $(LIBS) -o $@
$(CC) $(CFLAGS) make-libs-list.c \
$(LIBS) -I$(CONAN_INCLUDE_DIRS_CJSON) -L$(CONAN_LIB_DIRS_CJSON) \
-o $@
clean:
rm make-libs-list

5
conanfile.txt Normal file
View File

@ -0,0 +1,5 @@
[requires]
cjson/1.7.15
[generators]
make