How to add prebuilt static library in project using CMake?

后端 未结 4 479
粉色の甜心
粉色の甜心 2020-12-11 15:59

Clion: how add or (use) prebuilt static library in my Project?

4条回答
  •  长情又很酷
    2020-12-11 16:11

    Your question is unrelated to CLion, it is pure CMake. Modify the CMakeLists.txt from your project and use add_library. The CMake documentation might be helpful.

    I misunderstood the question, target_link_library is probably the answer to the question.

提交回复
热议问题