mwarning / KadNode

P2P DNS with content key, crypto key and PKI support. DynDNS alternative.
MIT License
410 stars 74 forks source link

CMake support #120

Open stokito opened 1 year ago

stokito commented 1 year ago

The CLion IDE (IntelliJ) works normally only with CMake. Otherwise I can't debug it. I added the CMakeList.txt just for this case. It doesn't work completely so you may not merge it. Anyway the PR may be useful for others like me

mwarning commented 1 year ago

What does not work? It compiles for me.

stokito commented 1 year ago

not all features are migrated: natpmp, libcadnode etc.

mwarning commented 1 year ago

ah, ok. understood.

stokito commented 1 year ago

The Makefile has this:

ifeq ($(OS),Windows_NT)
  OBJS += build/unix.o build/windows.o
else
  OBJS += build/unix.o
endif

E.g. even for a Windows we need to compile the unix.c file. Is this correct or was made by a mistake?

mwarning commented 1 year ago

unix.c is need to compile on Windows since Cygwin is used.

stokito commented 1 year ago

so this file is anyway always added then we can move it too list of all core files

mwarning commented 1 year ago

Yes, that sounds like a good idea.