Skip to content

Commit

Permalink
[build/CI] improvement openMVG#718. Build only OpenMVG core libraries…
Browse files Browse the repository at this point in the history
… for unit testing and faster build.
  • Loading branch information
pmoulon committed Jan 1, 2017
1 parent 9b90e9e commit 893209b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ before_script:
- mkdir $OPENMVG_BUILD
- cd $OPENMVG_BUILD
# Classic release build
# - SCHUR_SPECIALIZATIONS set to OFF to speed up build time (ceres)
# - Compile only OpenMVG core libraries for unit testing
# - SCHUR_SPECIALIZATIONS set to OFF to speed up build time (ceres)
- >
cmake \
-DCMAKE_CXX_COMPILER=$COMPILER \
-DCMAKE_BUILD_TYPE=release \
-DOpenMVG_BUILD_TESTS=ON \
-DOpenMVG_BUILD_EXAMPLES=ON \
-DOpenMVG_BUILD_SOFTWARES=OFF \
-DSCHUR_SPECIALIZATIONS=OFF \
. $OPENMVG_SOURCE
Expand Down
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ option(OpenMVG_BUILD_TESTS "Build OpenMVG tests" OFF)
option(OpenMVG_BUILD_DOC "Build OpenMVG documentation" ON)
option(OpenMVG_BUILD_EXAMPLES "Build OpenMVG samples applications." ON)
option(OpenMVG_BUILD_OPENGL_EXAMPLES "Build OpenMVG openGL examples" OFF)
option(OpenMVG_BUILD_SOFTWARES "Build OpenMVG softwares" ON)
option(OpenMVG_BUILD_COVERAGE "Enable code coverage generation (gcc only)" OFF)
option(OpenMVG_USE_OPENMP "Enable OpenMP parallelization" ON)
# ==============================================================================
Expand Down Expand Up @@ -435,7 +436,9 @@ if (OpenMVG_BUILD_EXAMPLES)
endif (OpenMVG_BUILD_EXAMPLES)

# Complete software(s) build on openMVG libraries
add_subdirectory(software)
if (OpenMVG_BUILD_SOFTWARES)
add_subdirectory(software)
endif (OpenMVG_BUILD_SOFTWARES)

# Included for research purpose only
add_subdirectory(nonFree)
Expand Down

0 comments on commit 893209b

Please sign in to comment.