Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to add an external library to eclipse cmake projects(Adding external C/C++ libraries to CDT cmake projects)
How to add an external library to eclipse cmake projects [message #1817306] Wed, 20 November 2019 04:48 Go to next message
Eclipse UserFriend
I wonder how to achieve this for CMake projects? https://wiki.eclipse.org/CDT/User/FAQ#How_do_I_add_an_external_library_to_my_C.2B.2B_project.3F

For CDT make projects, I could see C/C++ Build>>Settings>> option, but CMake projects there is no option at all.

Is there any way I could achieve the same?
Re: How to add an external library to eclipse cmake projects [message #1817321 is a reply to message #1817306] Wed, 20 November 2019 07:05 Go to previous messageGo to next message
Eclipse UserFriend
AFAIK, There is no equivalent of Managed Builds in a CMake project.
You do it by editing the CMakeLists.txt or by using the CMake GUI tool.

You may find these helpful:
https://cmake.org/cmake/help/latest/command/add_library.html#imported-libraries
https://www.johnlamp.net/cmake-tutorial-4-libraries-and-subdirectories.html
Re: How to add an external library to eclipse cmake projects [message #1817429 is a reply to message #1817321] Fri, 22 November 2019 00:42 Go to previous message
Eclipse UserFriend
Thanks David, let me try
Previous Topic:Unable to use custom linker script in Eclipse Mars?
Next Topic:Code Folding Problems - More info...
Goto Forum:
  


Current Time: Tue Jun 17 14:09:00 EDT 2025

Powered by FUDForum. Page generated in 0.03331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top