Skip to content

Commit

Permalink
[build] SwigBinding: Compile on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Sep 30, 2024
1 parent b7c7a6b commit 516df8a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/aliceVision/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ if(ALICEVISION_BUILD_SWIG_BINDING)
target_link_libraries(pyalicevision
PUBLIC
aliceVision_numeric
${Python3_LIBRARIES}
)
install(
TARGETS
pyalicevision

DESTINATION
${CMAKE_INSTALL_PREFIX}
)
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/camera/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
target_link_libraries(camera
PUBLIC
aliceVision_camera
${Python3_LIBRARIES}
)

install(
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
target_link_libraries(geometry
PUBLIC
aliceVision_geometry
${Python3_LIBRARIES}
)

install(
Expand Down
5 changes: 4 additions & 1 deletion src/aliceVision/global.i
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@

%template(IndexTSet) std::set<IndexT>;

%template(SizeTPair) std::pair<size_t, size_t>;
namespace std {
%template(SizeTPair) pair<size_t, size_t>;
}
%template(LongUintPair) std::pair<long unsigned int, long unsigned int>;

// As defined in aliceVision/types.hpp
%template(Pair) std::pair<IndexT, IndexT>;
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/hdr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
aliceVision_numeric
aliceVision_image
aliceVision_sfmData
${Python3_LIBRARIES}
)

install(
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/sensorDB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
target_link_libraries(sensorDB
PUBLIC
aliceVision_sensorDB
${Python3_LIBRARIES}
)

install(
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/sfmData/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
PUBLIC
aliceVision_sfmData
aliceVision_camera
${Python3_LIBRARIES}
)

install(
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/sfmDataIO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
target_link_libraries(sfmDataIO
PUBLIC
aliceVision_sfmDataIO
${Python3_LIBRARIES}
)

install(
Expand Down
1 change: 1 addition & 0 deletions src/aliceVision/stl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
aliceVision_stl
aliceVision_system
Boost::container
${Python3_LIBRARIES}
)

install(
Expand Down

0 comments on commit 516df8a

Please sign in to comment.