Fix CMake top-level detection, install build with CI
This commit is contained in:
parent
9af28f0aa6
commit
01bb6e1bcf
2 changed files with 3 additions and 1 deletions
2
.github/workflows/ubuntu.yml
vendored
2
.github/workflows/ubuntu.yml
vendored
|
@ -22,3 +22,5 @@ jobs:
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
- name: Install
|
||||||
|
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
|
|
@ -93,7 +93,7 @@ if (WITH_QT_EXAMPLE)
|
||||||
add_subdirectory(examples/ragephoto-qtviewer)
|
add_subdirectory(examples/ragephoto-qtviewer)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_PROJECT_NAME EQUAL "ragephoto")
|
if (${CMAKE_PROJECT_NAME} STREQUAL "ragephoto")
|
||||||
option(WITH_EXTRACT "Build libragephoto with ragephoto-extract" ON)
|
option(WITH_EXTRACT "Build libragephoto with ragephoto-extract" ON)
|
||||||
else()
|
else()
|
||||||
option(WITH_EXTRACT "Build libragephoto with ragephoto-extract" OFF)
|
option(WITH_EXTRACT "Build libragephoto with ragephoto-extract" OFF)
|
||||||
|
|
Loading…
Reference in a new issue