Browse Source

Fix CMake top-level detection, install build with CI

test
Syping 8 months ago
parent
commit
01bb6e1bcf
  1. 2
      .github/workflows/ubuntu.yml
  2. 2
      CMakeLists.txt

2
.github/workflows/ubuntu.yml

@ -22,3 +22,5 @@ jobs:
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Install
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

2
CMakeLists.txt

@ -93,7 +93,7 @@ if (WITH_QT_EXAMPLE)
add_subdirectory(examples/ragephoto-qtviewer)
endif()
if (CMAKE_PROJECT_NAME EQUAL "ragephoto")
if (${CMAKE_PROJECT_NAME} STREQUAL "ragephoto")
option(WITH_EXTRACT "Build libragephoto with ragephoto-extract" ON)
else()
option(WITH_EXTRACT "Build libragephoto with ragephoto-extract" OFF)

Loading…
Cancel
Save