Linking with CMake/CLion
Hello,
Sorry for a real rookie question but I've spent most of the day trying to understand Cmake without luck.
So, I'm trying to do a silly little C program using the https://github.com/zserge/jsmn library. I clone that one, I build the libjsmn.a, I include the folder in CMake and write a small main.c that uses the json functions.
Nice, until i build it and CMake linker says all my json functions is "undefined references" I include that folder in target_link_libraries.. no luck.. I add all the jsmn source and header files in the project.. Cmake cant link..
I wrote a makefile and everything was great, perhaps Vim & makefiles is the way for me after all.. :(
Regards
Edit: Two days of CMake tutorials might help me get the grip of it!
请先登录再写评论。