diff --git a/.github/workflows/cmake-integration.yml b/.github/workflows/cmake-integration.yml index a5d0bfb..dc6a025 100644 --- a/.github/workflows/cmake-integration.yml +++ b/.github/workflows/cmake-integration.yml @@ -210,6 +210,35 @@ jobs: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCPPTRACE_TAG="$tag" -DBUILD_SHARED_LIBS=${{matrix.shared}} msbuild demo_project.sln .\Debug\main.exe + test-windows-findpackage: + runs-on: windows-2022 + strategy: + fail-fast: false + matrix: + shared: [On, Off] + steps: + - uses: actions/checkout@v4 + - name: Enable Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1.10.0 + - name: test + run: | + $tag=$(git rev-parse --abbrev-ref HEAD) + echo $tag + mkdir build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX=C:/foo + msbuild cpptrace.sln + msbuild INSTALL.vcxproj + cd ../.. + mv cpptrace/test/findpackage-integration . + mkdir findpackage-integration/build + cd findpackage-integration/build + cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=C:/foo + msbuild demo_project.sln + if("${{matrix.shared}}" -eq "On") { + cp C:/foo/bin/cpptrace.dll . + } + ./main test-windows-add_subdirectory: runs-on: windows-2022 strategy: