I'm working on a c++ project with clion,using capstone,and I dont know to much cmake syntax for sure there is my project tree enter image description here
there is a function (called a()) used in main.cpp, declared in cstool.h and implemented in cstool.cpp
and there are function print_insn_detail_arm(),print_insn_detail_arm64(),print_insn_detail_x86() used in a(),
print_insn_detail_arm() implemented in cstool_arm.c
print_insn_detail_arm64() implemented in cstool_arm64.c
print_insn_detail_x86() implemented in cstool_x86.c
no header files for the three .c files
but there error when building
I think that the libcstool_arch.a didnot be linked to the project, but I dont know how to write correct sentence.
not sure if the header files are necessary for the three .c file
I think maybe there are some errors or imperfect thinking in cmake sentence sequence and other aspects, wishing for guidance and advices as a beginner