Browse Source

use Conan PM

master
Alexander Popov 1 month ago
parent
commit
0ddf1ef1d7
Signed by: Alexander Popov
GPG Key ID: D8C9B59A9F04A70C
  1. 4
      .gitignore
  2. 6
      Makefile
  3. 5
      conanfile.txt

4
.gitignore vendored

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

6
Makefile

@ -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

@ -0,0 +1,5 @@
[requires]
cjson/1.7.15
[generators]
make
Loading…
Cancel
Save