MantisBT - CMake
View Issue Details
0015519CMakeCMakepublic2015-04-17 15:412016-06-10 14:31
chenliang xu 
Kitware Robot 
normalfeatureN/A
closedmoved 
Apple MacOS X10.4.10
CMake 3.2.2 
 
0015519: Support auto-complete for CodeLite generator
The generated CodeLite would be more useful if the auto-complete is supported. To do that, the completion and search paths should be configured in the .projct file, such as,

      <Completion EnableCpp11="no">
        <ClangCmpFlagsC/>
        <ClangCmpFlags/>
        <ClangPP/><SearchPaths>
/foo/bar
/something
</SearchPaths>
      </Completion>

To get a full xml file, you can generate project with cmake, edit include path in CodeLite and check the .project file.

I believe some other IDEs such as Eclipse need something similar.
No tags attached.
Issue History
2015-04-17 15:41chenliang xuNew Issue
2015-04-19 09:02Eran IfrahNote Added: 0038541
2016-06-10 14:29Kitware RobotNote Added: 0042759
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0038541)
Eran Ifrah   
2015-04-19 09:02   
Hi chenliang,

After generating the CodeLite workspace + project file, you can run from the command line 'cmake' with the "-DCMAKE_EXPORT_COMPILE_COMMANDS=1" this will export a JSON file that is automatically used by CodeLite (this file contains the build command per file with all the include paths in the format of: "-I/path/to/somewhere"
(0042759)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.