File: README.md

package info (click to toggle)
tango 10.0.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 89,484 kB
  • sloc: cpp: 201,245; sh: 1,645; python: 953; java: 800; perl: 467; javascript: 447; xml: 325; makefile: 269; sql: 72; ruby: 24
file content (55 lines) | stat: -rw-r--r-- 1,310 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Tango CMake Modules

A set of common CMake modules for use in Tango projects.

# Usage

1. Add this repository as a git submodule:

    ```bash
    git submodule add https://gitlab.com/tango-controls/TangoCMakeModules
    ```

2. Use the modules in your CMakeLists.txt:

    ```cmake
    list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/TangoCMakeModules")

    find_package(Tango REQUIRED)
    ```

3. Add the following to your README.md to remind developers that we are using
   git submodules:

    ```markdown
    ## Keeping Up-to-date

    This repository uses git submodules.

    - Ensure that you use `--recurse-submodules` when cloning:

        `git clone --recurse-submodules ...`

    - If you didn't clone with `--recurse-submodules`, run

        `git submodule update --init`

      to initialise and fetch submodules data.

    - Ensure that updates to git submodules are pulled:

        `git pull --recurse-submodules`
    ```

4. Add the following to `.gitlab-ci.yml` so that the CI knows to clone the
   repository recursively and to generate archives with the submodule included:


    ```yaml
    variables:
        GIT_SUBMODULE_STRATEGY: recursive

    include:
    - project: 'tango-controls/gitlab-ci-templates'
        file: 'ArchiveWithSubmodules.gitlab-ci.yml'
    ```