diff options
| author | Leitwolf | 2026-11-01 22:16:28 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-01 22:16:28 +0300 |
| commit | ba168615b03a2c8a5d763eb455340b303d3b3f1a (patch) | |
| tree | c0198de51692d1a509cf4f8273ce7f274d7e0dd0 | |
| parent | 5cbd481125b881a4c2eed74050be9899eb3f23a7 (diff) | |
| parent | a371b0ff18fd18819e0624fcb9a8ad3d94f4ef25 (diff) | |
| download | catch3-ba168615b03a2c8a5d763eb455340b303d3b3f1a.tar.gz | |
Merge pull request #34 from Progmasoft/fix/cmake-install
Install again with CMake
| -rw-r--r-- | .github/workflows/linux-builds.yml | 13 | ||||
| -rw-r--r-- | CMakeLists.txt | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml index 5290574b..a9c38c66 100644 --- a/.github/workflows/linux-builds.yml +++ b/.github/workflows/linux-builds.yml @@ -52,6 +52,19 @@ jobs: - name: Test run: ctest --test-dir build -j + - name: Install, and find the installed package + run: | + cmake --install build --prefix "$RUNNER_TEMP/catch3" + mkdir "$RUNNER_TEMP/consumer" + cat > "$RUNNER_TEMP/consumer/CMakeLists.txt" <<'EOF' + cmake_minimum_required(VERSION 3.16) + project(Consumer CXX) + find_package(Catch3 REQUIRED) + EOF + cmake -S "$RUNNER_TEMP/consumer" -B "$RUNNER_TEMP/consumer/build" \ + -GNinja -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_PREFIX_PATH="$RUNNER_TEMP/catch3" + thread-sanitizer: name: Ubuntu 26.04, C++17, ThreadSanitizer and UBSan runs-on: ubuntu-26.04 diff --git a/CMakeLists.txt b/CMakeLists.txt index 6806acf0..552da5af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,7 +164,6 @@ if(NOT_SUBPROJECT) # Install CMake scripts install( FILES - "extras/ParseAndAddCatchTests.cmake" "extras/Catch3.cmake" "extras/Catch3AddTests.cmake" "extras/Catch3ShardTests.cmake" |