File tree 12 files changed +24
-16
lines changed
12 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -85,48 +85,49 @@ endif()
85
85
if (ALICEVISION_BUILD_SWIG_BINDING)
86
86
set (UseSWIG_TARGET_NAME_PREFERENCE STANDARD)
87
87
set_property (SOURCE aliceVision.i PROPERTY CPLUSPLUS ON )
88
- set_property (SOURCE aliceVision.i PROPERTY SWIG_MODULE_NAME aliceVision )
88
+ set_property (SOURCE aliceVision.i PROPERTY SWIG_MODULE_NAME pyAliceVision )
89
89
90
- swig_add_library(aliceVision
90
+ swig_add_library(pyAliceVision
91
91
TYPE MODULE
92
92
LANGUAGE python
93
93
SOURCES aliceVision.i
94
94
)
95
95
96
96
set_property (
97
- TARGET aliceVision
97
+ TARGET pyAliceVision
98
98
PROPERTY SWIG_COMPILE_OPTIONS -doxygen
99
99
)
100
100
101
- target_include_directories (aliceVision
101
+ target_include_directories (pyAliceVision
102
102
PRIVATE
103
103
../include
104
104
${ALICEVISION_ROOT} /include
105
105
${Python3_INCLUDE_DIRS}
106
106
${Python3_NumPy_INCLUDE_DIRS}
107
107
)
108
108
set_property (
109
- TARGET aliceVision
109
+ TARGET pyAliceVision
110
110
PROPERTY SWIG_USE_TARGET_INCLUDE_DIRECTORIES ON
111
111
)
112
112
set_property (
113
- TARGET aliceVision
113
+ TARGET pyAliceVision
114
114
PROPERTY COMPILE_OPTIONS -std=c++17
115
115
)
116
116
117
- target_link_libraries (aliceVision
117
+ target_link_libraries (pyAliceVision
118
118
PUBLIC
119
119
aliceVision_numeric
120
+ ${Python3_LIBRARIES}
120
121
)
121
122
install (
122
123
TARGETS
123
- aliceVision
124
+ pyAliceVision
124
125
DESTINATION
125
126
${CMAKE_INSTALL_PREFIX}
126
127
)
127
128
install (
128
129
FILES
129
- ${CMAKE_CURRENT_BINARY_DIR} /aliceVision .py
130
+ ${CMAKE_CURRENT_BINARY_DIR} /pyAliceVision .py
130
131
DESTINATION
131
132
${CMAKE_INSTALL_PREFIX}
132
133
)
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
90
90
target_link_libraries (camera
91
91
PUBLIC
92
92
aliceVision_camera
93
+ ${Python3_LIBRARIES}
93
94
)
94
95
95
96
install (
Original file line number Diff line number Diff line change 4
4
// v. 2.0. If a copy of the MPL was not distributed with this file,
5
5
// You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
7
- %module (module=" aliceVision " ) camera
7
+ %module (module=" pyAliceVision " ) camera
8
8
9
9
%include <aliceVision/camera/IntrinsicBase.i>
10
10
Original file line number Diff line number Diff line change 23
23
%}
24
24
25
25
%inline %{
26
- typedef long unsigned int size_t ;
26
+ // typedef long unsigned int size_t;
27
27
typedef uint32_t IndexT;
28
28
%}
29
29
37
37
38
38
%template (IndexTSet) std::set<IndexT>;
39
39
40
- %template (SizeTPair) std::pair<size_t , size_t >;
40
+ // %template(SizeTPair) std::pair<size_t, size_t>;
41
+ %template (LongUintPair) std::pair<long unsigned int , long unsigned int >;
42
+ %template (UintPair) std::pair<unsigned int , unsigned int >;
41
43
42
44
// As defined in aliceVision/types.hpp
43
45
%template (Pair) std::pair<IndexT, IndexT>;
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
89
89
aliceVision_numeric
90
90
aliceVision_image
91
91
aliceVision_sfmData
92
+ ${Python3_LIBRARIES}
92
93
)
93
94
94
95
install (
Original file line number Diff line number Diff line change 4
4
// v. 2.0. If a copy of the MPL was not distributed with this file,
5
5
// You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
7
- %module (module=" aliceVision " ) hdr
7
+ %module (module=" pyAliceVision " ) hdr
8
8
9
9
%include <aliceVision/hdr/Brackets.i>
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
63
63
target_link_libraries (sensorDB
64
64
PUBLIC
65
65
aliceVision_sensorDB
66
+ ${Python3_LIBRARIES}
66
67
)
67
68
68
69
install (
Original file line number Diff line number Diff line change 4
4
// v. 2.0. If a copy of the MPL was not distributed with this file,
5
5
// You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
7
- %module (module=" aliceVision " ) sensorDB
7
+ %module (module=" pyAliceVision " ) sensorDB
8
8
9
9
%include <aliceVision/sensorDB/Datasheet.i>
10
10
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
88
88
PUBLIC
89
89
aliceVision_sfmData
90
90
aliceVision_camera
91
+ ${Python3_LIBRARIES}
91
92
)
92
93
93
94
install (
Original file line number Diff line number Diff line change 4
4
// v. 2.0. If a copy of the MPL was not distributed with this file,
5
5
// You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
7
- %module (module=" aliceVision " ) sfmData
7
+ %module (module=" pyAliceVision " ) sfmData
8
8
9
9
%include <aliceVision/sfmData/CameraPose.i>
10
10
%include <aliceVision/sfmData/Constraint2D.i>
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ if (ALICEVISION_BUILD_SWIG_BINDING)
131
131
target_link_libraries (sfmDataIO
132
132
PUBLIC
133
133
aliceVision_sfmDataIO
134
+ ${Python3_LIBRARIES}
134
135
)
135
136
136
137
install (
Original file line number Diff line number Diff line change 4
4
// v. 2.0. If a copy of the MPL was not distributed with this file,
5
5
// You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
7
- %module (module=" aliceVision " ) sfmDataIO
7
+ %module (module=" pyAliceVision " ) sfmDataIO
8
8
9
9
%include <std_string.i>
10
10
%include <aliceVision/sfmDataIO/sfmDataIO.hpp>
You can’t perform that action at this time.
0 commit comments