-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5213aa3
commit 9898789
Showing
2 changed files
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,7 @@ Setup | |
- CMake: `pip install --user cmake_format` | ||
- Python: `pip install --user python-autopep8 pylint` | ||
1. Ensure that `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` is included in the `cmake_args` of your catkin profile. It is already added to the default profile, but if you have created your own catkin profile, you need to add the flag with `catkin config -a --cmake-args "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"`) | ||
2. If you use `aduulm_cmake_tooks`, you can include the git hooks in any of your packages' toplevel `CMakeList.txt` with a call to `setup_git_hooks()`. Otherwise, you may add the following code block explicitly (not recommended): | ||
```cmake | ||
set(HOOKS_PATH "${CMAKE_BINARY_DIR}/../../root/git_hooks") | ||
if(EXISTS "${HOOKS_PATH}") | ||
add_subdirectory("${HOOKS_PATH}" "${CMAKE_CURRENT_BINARY_DIR}/.hooks") | ||
create_git_hook() | ||
else() | ||
message(WARNING "Could not find git hooks. Git hooks are not active.") | ||
endif() | ||
``` | ||
2. If you use `aduulm_cmake_tooks`, you can include the git hooks in any of your packages' toplevel `CMakeList.txt` with a call to `setup_git_hooks()`. Otherwise, you may add the git_hooks repository as a submodule of your own repository with ` git submodule add "ssh://[email protected]:7678/aduulm/source/git_hooks.git" git_hooks` and then include it with `add_subdirectory("git_hooks")` and `setup_git_hooks()`. | ||
3. Run `catkin build` or `catkin build PROJECT_NAME` | ||
4. Check that `./run_hooks` and `$(git rev-parse --git-dir)/hooks/pre-commit` exist | ||
5. Add `run_hooks` to your .gitignore file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters