CMake 3.2.2 and Eclipse 4.5.1 CDT 8.0

I am using Eclipse Mars (4.5.1) with CDT 8.0 for a c++ project on Ubuntu 15.10.

I am experimenting with using cmake 3.2.2 as my build tool and would like to test how well it works for generating makefiles for an eclipse C++ project. I still need to be able to build the project from command line/independently of Eclipse.

  • Preventing TFS from adding Temporary files
  • git patch ignoring white space diffs c++
  • How do I use VisualStudio git extensions to access remote repository using password access?
  • How to get the head version of a file with libgit2sharp (git cat-file)
  • Is there a way to stream data into GIT instead of passing in file names?
  • Run git commands from a C# function
  • It seems cmake 3.2.2 only supports up to Eclipse 4.3 (Kepler) and CDT4:

    enter image description here

    I tried using that for this test project:
    https://github.com/kaizouman/gtest-cmake-example

    And for now it seems to work I can import the project and run the make targets:

    enter image description here

    It looks a bit messy though:

    1. src/ folder appears to be nested under the build/ folder (at least from the eclipse perspective) making it a bit difficult to see whats versioned and what is ignored (git).
    2. Changes to my sources (currently versioned using git) is not picked up by EGit. So I have to go to git command line to get an overview of what I have modified.

    The indexer seems to be running as expected though (function completion, go to definition etc.) so that is great.

    build/ folder is currently on my .gitignore where I suppose it should stay.

    Another thing are there any known issues with using cmake to generate makes files for Eclipse 4.5.1 and CDT8?

  • EGit and Stash with Eclipse - SSL hostname verification
  • Git install with Aptana
  • Cannot import local git into Eclipse to create a new project (throws error “Connecting Git team provider failed”)
  • Trouble running Eclipse project in IntelliJ
  • Is there any IDE/GUI support for git-flow on Windows/Linux?
  • “git log -1 fullpath/myfile” with libgit2
  • Git Baby is a git and github fan, let's start git clone.