Build Eclipse CDT Project with CMake under Linux platform __linux

Source: Internet
Author: User
Tags mkdir

1. Project Catalogue Planning

Build, CMake, src three directories under Project_dir.


2, the preparation of CMakeLists.txt documents.


3. Invoke the CMake command to generate project files for Eclipse

Click (here) to collapse or open mkdir-p build/release
Mkdir-p Build/debug
Cmake-e chdir build/release cmake-g "Eclipse cdt4-unix makefiles"-dcmake_build_type=release. /.. /
Cmake-e chdir build/debug cmake-g "Eclipse cdt4-unix makefiles"-dcmake_build_type=debug. /.. /
4. Open Eclipse
A. Select menu:
File->import->general->existing Projects into Workspace
B. Click "Next" and select directory for project_dir/build in select root directory
Eclipse automatically searches for the items in debug, release two directories.
C. Click "Finish" button. Eclipse will automatically join the project.

5. The rest is to use the Eclipse CDT debugger.

Bless all

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.