Skip to content

Commit 245eb8f

Browse files
authored
Merge pull request eclipse-zenoh#141 from milyin/cmake_genexpr
large rework of cmake build script
2 parents 352077a + 8ba32c3 commit 245eb8f

File tree

12 files changed

+758
-249
lines changed

12 files changed

+758
-249
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,33 @@ jobs:
3737
command: fmt
3838
args: -- --check
3939

40-
- name: build
40+
- name: build and install
4141
shell: bash
4242
run: |
4343
mkdir -p build && cd build
44-
cmake -DCMAKE_BUILD_TYPE=Release ..
45-
cmake --build .
44+
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/local
45+
cmake --build . --target install --config Release
4646
4747
- name: make examples
4848
shell: bash
4949
run: |
5050
cd build
5151
cmake --build . --target examples
5252
53+
- name: make examples with zenoh-c as subbroject
54+
shell: bash
55+
run: |
56+
mkdir -p build_examples_subproj && cd build_examples_subproj
57+
cmake ../examples -DCMAKE_BUILD_TYPE=Debug
58+
cmake --build . --config Debug
59+
60+
- name: make examples with zenoh-c as installed package
61+
shell: bash
62+
run: |
63+
mkdir -p build_examples_findproj && cd build_examples_findproj
64+
cmake ../examples -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/local -DZENOHC_FORCE_TYPE=PACKAGE
65+
cmake --build . --config Release
66+
5367
- name: Run tests
5468
uses: actions-rs/cargo@v1
5569
with:

0 commit comments

Comments
 (0)