parent
48719412f2
commit
e5b7cc2e3c
|
@ -35,6 +35,14 @@ jobs:
|
|||
args: install pkgconfiglite --checksum e87b5ea3c9142256af60f2d5b917aa63b571e6a0 --checksum-type sha1
|
||||
|
||||
- name: Build Qtk
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -B build/ ${{ matrix.cmake }} -DQTK_UPDATE_SUBMODULES=ON
|
||||
cmake --build build/
|
||||
|
||||
- name: Build Qtk
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -B build/ ${{ matrix.cmake }} -DQTK_UPDATE_SUBMODULES=ON
|
||||
|
@ -52,6 +60,14 @@ jobs:
|
|||
path: install/*
|
||||
|
||||
- name: Package Qtk
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cd build/
|
||||
cmake --build . --target package
|
||||
|
||||
- name: Package Qtk
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cd build/
|
||||
|
@ -104,6 +120,13 @@ jobs:
|
|||
sudo apt install libassimp-dev
|
||||
|
||||
- name: Build Qtk
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -B build/ ${{ matrix.cmake }} && cmake --build build/
|
||||
|
||||
- name: Build Qtk
|
||||
if: matrix.os != 'windows-latest'
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -B build/ ${{ matrix.cmake }} && cmake --build build/ -- -j $(nproc)
|
||||
|
|
|
@ -116,10 +116,11 @@ if(NOT Qt6_FOUND)
|
|||
endif()
|
||||
|
||||
# Find Assimp
|
||||
set(ASSIMP_BUILD_TESTS OFF)
|
||||
set(ASSIMP_BUILD_TESTS OFF CACHE STRING "Do not build assimp tests.")
|
||||
if(QTK_UPDATE_SUBMODULES)
|
||||
message(STATUS "[Qtk] Updating submodules...")
|
||||
set(ASSIMP_INSTALL OFF)
|
||||
set(ASSIMP_INSTALL OFF CACHE STRING "Use assimp as a submodule.")
|
||||
set(ASSIMP_WARNINGS_AS_ERRORS OFF CACHE STRING "No warnings as errors.")
|
||||
submodule_update("${CMAKE_CURRENT_SOURCE_DIR}/extern/assimp/assimp/")
|
||||
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/extern/assimp/assimp/")
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue