-
Notifications
You must be signed in to change notification settings - Fork 0
Config.cmake added #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| _build | ||
| _tmp |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # | ||
| # Example configuration for CMCONF system. | ||
| # | ||
|
|
||
| FIND_PACKAGE(CMLIB REQUIRED COMPONENTS CMCONF) | ||
|
|
||
| CMCONF_INIT_SYSTEM(EXAMPLE) | ||
|
|
||
| # | ||
| # Setting using upstream Package Repository by default for this system. This can be overridden by | ||
| # App in CMakeLists.txt. | ||
| # | ||
| CMCONF_SET(BA_PACKAGE_LOCAL_USE OFF) | ||
| CMCONF_SET(BA_PACKAGE_LOCAL_PATH "") | ||
|
|
||
koudis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # | ||
| # The http authorization header is usually used for accessing private Package Repositories. This | ||
| # example does not need it, but the variable must be set. | ||
| # | ||
| CMCONF_SET(BA_PACKAGE_HTTP_AUTHORIZATION_HEADER "") | ||
|
|
||
| # | ||
| # Authorization header can be set from ENV variable | ||
| # | ||
| #CMCONF_SET(BA_PACKAGE_HTTP_AUTHORIZATION_HEADER "$ENV{ACCESS_TOKEN_ROCKS}") | ||
|
|
||
| # | ||
| # Setting BringAuto's Package Repository URI Template | ||
| # | ||
| CMCONF_SET(BA_PACKAGE_URI_REVISION master) | ||
| CMCONF_SET(BA_PACKAGE_URI_TEMPLATE_REMOTE "https://gitea.example.com/my-project/package-repository/media/<REVISION>/package/<GIT_PATH>/<PACKAGE_GROUP_NAME>/<ARCHIVE_NAME>") | ||
|
|
||
| # | ||
| # Gitea hosted public Package Repository: | ||
| # | ||
| #CMCONF_SET(BA_PACKAGE_URI_TEMPLATE_REMOTE "https://gitea.example.com/username/repository/media/<REVISION>/package/<GIT_PATH>/<PACKAGE_GROUP_NAME>/<ARCHIVE_NAME>") | ||
|
|
||
| # | ||
| # Gitea hosted private Package Repository. | ||
| # Do not forget to specify Access Token | ||
| # | ||
| #CMCONF_SET(BA_PACKAGE_HTTP_AUTHORIZATION_HEADER "token <token>") | ||
| #CMCONF_SET(BA_PACKAGE_URI_TEMPLATE_REMOTE "https://gitea.example.com/username/repository/raw/<REVISION>/package/<GIT_PATH>/<PACKAGE_GROUP_NAME>/<ARCHIVE_NAME>") | ||
|
|
||
| # | ||
| # Gitlab hosted private Package Repository. | ||
| # | ||
| #CMCONF_SET(BA_PACKAGE_HTTP_AUTHORIZATION_HEADER "Bearer <token>") | ||
| #CMCONF_SET(BA_PACKAGE_URI_TEMPLATE_REMOTE "https://gitlab.example.com/username/repository/-/raw/<REVISION>/package/<GIT_PATH>/<PACKAGE_GROUP_NAME>/<ARCHIVE_NAME>") | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
|
|
||
| # EXAMPLE Configuration | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - [cmakelib] installed | ||
| - [example-project] forked | ||
| - prepare Package Repository as described by [example usage documentation] | ||
|
|
||
| ## Install EXAMPLE Config | ||
|
|
||
| The EXAMPLE config is in `CMCONF_EXAMPLEConfig.cmake` file. To install it, run following command: | ||
|
|
||
| ```bash | ||
| cmake -DCMCONF_INSTALL_AS_SYMLINK=ON -P ./CMCONF_EXAMPLEConfig.cmake | ||
| ``` | ||
|
|
||
| To uninstall it, run following command: | ||
|
|
||
| ```bash | ||
| cmake -DCMCONF_UNINSTALL=ON -P ./CMCONF_EXAMPLEConfig.cmake | ||
| ``` | ||
|
|
||
| ## Change System Name | ||
|
|
||
| Let `X` be the SYSTEM name. | ||
|
|
||
| - Rename `CMCONF_EXAMPLEConfig.cmake` to `CMCONF_XConfig.cmake`, | ||
| - Rename `EXAMPLE` to `X` in `CMCONF_XConfig.cmake`, | ||
| - Rename `EXAMPLE` to `X` in `CMLibStorage.cmake` in the forked example-project Git repository. | ||
| - Install `CMCONF_XConfig.cmake` as described above. | ||
|
|
||
|
|
||
| [example-project]: https://github.com/bacpack-system/example-project | ||
| [cmakelib]: https://github.com/cmakelib/cmakelib | ||
| [example usage documentation]: https://bacpack-system.github.io/example_usage |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.