Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,27 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gen_docs
destination_dir: docs

use_rpp_as_package:
needs: [download_deps]

timeout-minutes: 20
runs-on: ubuntu-latest
name: Test RPP as package - ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install project and build
env:
CC: gcc-10
CXX: g++-10
run: |
cmake -B build
sudo cmake --build build --target install --parallel 2 --config Release

cmake -B sample_build -S src/examples/package
cmake --build sample_build --parallel 2 --config Release

2 changes: 1 addition & 1 deletion src/examples/basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ add_executable(basic_sample
basic.cpp
)

target_link_libraries(basic_sample PRIVATE rpp)
target_link_libraries(basic_sample PRIVATE RPP::rpp)
set_target_properties(basic_sample PROPERTIES FOLDER Examples)
8 changes: 8 additions & 0 deletions src/examples/package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.12)
project(test_package LANGUAGES CXX)

find_package(RPP REQUIRED CONFIG)

add_executable(${PROJECT_NAME} ../basic/basic.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE RPP::rpp)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)