Clion & CMake. How To Add Library (*.so)

后端 未结 1 1666
有刺的猬
有刺的猬 2021-01-14 00:56

I am trying to write (c/c++) code in Clion IDE. I need to add some shared library into my project. at this moment, I only want to run the main function, which will add all f

相关标签:
1条回答
  • 2021-01-14 01:42

    Use add_library if you are creating your own library from source files.

    Use target_link_libraries if you are specifying that your target needs to link against a library from someone else.

    0 讨论(0)
提交回复
热议问题