documentation: Use Bear to generate compilation database

This commit is contained in:
Andreas Stallinger
2016-04-27 14:58:57 +02:00
parent 999522ca20
commit bdf713f078
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ if [ $PLATFORM == "Linux" ] || [ $PLATFORM == "MacOS" ]; then
cd build/Debug && cmake -G Ninja -DCMAKE_BUILD_TYPE="Debug" ../..
echo -e $INFO "run cmake with Release configuration"
cd ../Release && cmake -G Xcode -DCMAKE_BUILD_TYPE="Release" ../..
cd ../Release && cmake -G Ninja -DCMAKE_BUILD_TYPE="Release" ../..
fi
echo -e $SUCCESS "setup complete"
+5 -1
View File
@@ -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>