1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00
dindexer/tools/cmake_default
King_DuckZ a10982533e Add helper scripts for wrapping cmake invocation
export_compile_commands assumes you have your working copy in
$HOME/dev/code/dindexer and you are running it from your build
directory, which is in something like
$HOME/dev/build/dindexer/<config>

It will then invoke cmake with CMAKE_EXPORT_COMPILE_COMMANDS ON
for YouCompleteMe to work. The exported .json file is
automatically symlinked into your working copy. Any previous
symlink or file is deleted from your working copy first, so if
you run this script for Release and then for Debug, the appropriate
symlink to Debug will be in your working tree.

cmake_default simply wraps export_compile_commands passing
default cmake values I normally like to use.
2016-08-02 01:21:34 +02:00

13 lines
453 B
Bash
Executable file

#!/usr/bin/env bash
#see: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
script_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
exec "$script_path/export_compile_commands" \
-DBUILD_TESTING=ON \
-DPBL_WITH_TESTS=OFF \
-DDINDEXER_WITH_BUILD_DATE=ON \
-DDINDEXER_WITH_NICE_MEDIA_TYPES=OFF \
-DDINDEXER_NATIVE_RELEASE=ON \
-DDINDEXER_CXX11_ABI=OFF \
-DDINDEXER_DB_OWNER_NAME=dindexer-user