Fix CMake top-level detection, install build with CI

This commit is contained in:
Syping 2021-09-04 17:24:22 +02:00
parent 9af28f0aa6
commit 01bb6e1bcf
2 changed files with 3 additions and 1 deletions

View File

@ -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}}

View File

@ -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)