8000 Granular CMake modules and build targets by ahojnnes · Pull Request #2059 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Granular CMake modules and build targets #2059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .azure-pipelines/build-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:

- ${{ if eq(parameters.asanEnabled, true) }}:
- script: |
sudo apt-get install -y clang-15
sudo apt-get install -y clang-15 libomp-15-dev
echo '##vso[task.setvariable variable=CC]/usr/bin/clang-15'
echo '##vso[task.setvariable variable=CXX]/usr/bin/clang++-15'
displayName: Install Clang

- ${{ if eq(parameters.cmakeBuildType, 'ClangTidy') }}:
- script: |
sudo apt-get install -y clang-15 clang-tidy-15
sudo apt-get install -y clang-15 clang-tidy-15 libomp-15-dev
echo '##vso[task.setvariable variable=CC]/usr/bin/clang-15'
echo '##vso[task.setvariable variable=CXX]/usr/bin/clang++-15'
displayName: Install Clang
Expand All @@ -106,17 +106,34 @@ jobs:
condition: ne(variables.CCACHE_RESTORED, 'true')

- script: |
set -x
cmake --version
mkdir build
cd build
cmake .. \
-GNinja \
-DCMAKE_BUILD_TYPE=${{ parameters.cmakeBuildType }} \
-DCMAKE_INSTALL_PREFIX=./install \
-DTESTS_ENABLED=ON \
-DCMAKE_CUDA_ARCHITECTURES=50 \
-DASAN_ENABLED=${{ parameters.asanEnabled }}
ninja -k $(numAllowedNinjaErrors)
displayName: Configure and build
displayName: Configure and build colmap

- ${{ if and(eq(parameters.cmakeBuildType, 'Release'), eq(parameters.asanEnabled, false)) }}:
- script: |
set -x
cd build
ninja install
cd ../doc/sample-project
mkdir build
cd build
colmap_DIR=$(Build.SourcesDirectory)/build/install/share/colmap cmake .. \
-GNinja \
-DCMAKE_CUDA_ARCHITECTURES=50
ninja
./hello_world --message "world"
displayName: Install colmap and build sample

- ${{ if ne(parameters.cmakeBuildType, 'ClangTidy') }}:
- script: |
Expand Down
Loading
0