Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #58 from frederikvannoote/feature/mergeMaster
Browse files Browse the repository at this point in the history
Feature/merge master
  • Loading branch information
frederikvannoote authored Aug 9, 2018
2 parents ee17598 + 71ec423 commit 9ab8f76
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ You can fetch the files during your git clone using a submodule.
git submodule add -b <tag> [email protected]:barco-healthcare/cmake-common.git path/to/cmake/common
```

## Cloning during cmake run
Add this snippet to your CMakeLists.txt
```
# Download build system
if(NOT EXISTS "${CMAKE_BINARY_DIR}/buildsys/v2.0")
message(STATUS "Downloading buildsystem...")
find_package(Git REQUIRED)
execute_process(COMMAND ${GIT_EXECUTABLE} clone --branch v2.0 https://github.com/frederikvannoote/cmake-common.git ${CMAKE_BINARY_DIR}/buildsys/v2.0)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_BINARY_DIR}/buildsys/v2.0")
```

# Usage

You can include these files in your CMakeLists.txt
Expand Down

0 comments on commit 9ab8f76

Please sign in to comment.