Skip to content

Commit

Permalink
Merge pull request #1717 from alicevision/dev/splifSfmDebug
Browse files Browse the repository at this point in the history
[Cmake] split sfm library
  • Loading branch information
fabiencastan authored May 22, 2024
2 parents 4eb30df + da3c09c commit 634a539
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/aliceVision/sfm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Headers
set(sfm_bundle_files_headers
bundle/BundleAdjustment.hpp
bundle/BundleAdjustmentCeres.hpp
bundle/BundleAdjustmentSymbolicCeres.hpp
)

# Sources
set(sfm_bundle_files_sources
bundle/BundleAdjustmentCeres.cpp
bundle/BundleAdjustmentSymbolicCeres.cpp
)

set(sfm_files_headers
pipeline/global/GlobalSfMRotationAveragingSolver.hpp
pipeline/global/GlobalSfMTranslationAveragingSolver.hpp
Expand All @@ -18,9 +30,6 @@ set(sfm_files_headers
utils/alignment.hpp
utils/statistics.hpp
utils/syntheticScene.hpp
bundle/BundleAdjustment.hpp
bundle/BundleAdjustmentCeres.hpp
bundle/BundleAdjustmentSymbolicCeres.hpp
LocalBundleAdjustmentGraph.hpp
FrustumFilter.hpp
ResidualErrorFunctor.hpp
Expand Down Expand Up @@ -48,8 +57,6 @@ set(sfm_files_sources
utils/alignment.cpp
utils/statistics.cpp
utils/syntheticScene.cpp
bundle/BundleAdjustmentCeres.cpp
bundle/BundleAdjustmentSymbolicCeres.cpp
LocalBundleAdjustmentGraph.cpp
FrustumFilter.cpp
generateReport.cpp
Expand All @@ -58,6 +65,17 @@ set(sfm_files_sources
sfmTriangulation.cpp
)

alicevision_add_library(aliceVision_sfm_bundle
SOURCES ${sfm_bundle_files_headers} ${sfm_bundle_files_sources}
PUBLIC_LINKS
aliceVision_system
aliceVision_numeric
aliceVision_geometry
aliceVision_camera
aliceVision_sfmData
${CERES_LIBRARIES}
)

alicevision_add_library(aliceVision_sfm
SOURCES ${sfm_files_headers} ${sfm_files_sources}
PUBLIC_LINKS
Expand All @@ -74,8 +92,8 @@ alicevision_add_library(aliceVision_sfm
aliceVision_linearProgramming
aliceVision_sfmData
aliceVision_sfmDataIO
aliceVision_sfm_bundle
Boost::boost
${CERES_LIBRARIES}
PRIVATE_LINKS
${LEMON_LIBRARY}
)
Expand Down

0 comments on commit 634a539

Please sign in to comment.