KadNode icon indicating copy to clipboard operation
KadNode copied to clipboard

CMake support

Open stokito opened this issue 1 year ago • 7 comments

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

stokito avatar Oct 22 '22 21:10 stokito

What does not work? It compiles for me.

mwarning avatar Oct 22 '22 22:10 mwarning

not all features are migrated: natpmp, libcadnode etc.

stokito avatar Oct 23 '22 06:10 stokito

ah, ok. understood.

mwarning avatar Oct 23 '22 10:10 mwarning

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?

stokito avatar Oct 30 '22 12:10 stokito

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

mwarning avatar Oct 30 '22 13:10 mwarning

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

stokito avatar Oct 30 '22 13:10 stokito

Yes, that sounds like a good idea.

mwarning avatar Oct 30 '22 15:10 mwarning