documentation: Use Bear to generate compilation database
This commit is contained in:
@@ -586,6 +586,9 @@
|
||||
|
||||
<h4 id="CreateAProjectFromCompilationDatabase">Create a Project from Compilation Database</h4>
|
||||
<p>If you are using <a href="https://cmake.org/">CMake</a> you can export compile commands by defining the flag <code>CMAKE_EXPORT_COMPILE_COMMANDS</code>. Just select the exportet <code>.json</code> file in the file picker.</p>
|
||||
<p>For non-CMake projects you can use <a href="https://github.com/rizsotto/Bear">Bear</a>. Bear
|
||||
generates a json file during the build process. Bear has been tested on FreeBSD, GNU/Linux and OS
|
||||
X.</p>
|
||||
|
||||
<strong>Compilation Database Headers</strong>
|
||||
<p>In the next step you can define the locations of the corresponding header files of the source files in the compilation database.</p>
|
||||
@@ -1268,4 +1271,5 @@
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user