fixed: compile issue
[opensg.git] / CMake / OSGSetupPython.cmake
blob82c37dfa1404221fd4986f19db27e6df5d7ce48f
1 OSG_SET_CACHE(OSG_PYTHON_MODULE_BASE_DIR "" PATH "")
3 MACRO(SETUP_PYTHON_BUILD)
5 # optional pass for test programs
6   IF(OSGBUILD_PYTHON_BINDINGS)
7     LIST(APPEND OSG_CMAKE_PASSES "OSGPYTHON")
8     SET(OSG_PASSDIR_OSGPYTHON "Python")
10     IF(EXISTS ${PYOSG_PYPLUSPLUS_DIR})
11       SET(OSG_HAS_PYOSG_PYPLUSPLUS_DIR "True")
12     ELSE()
13       SET(OSG_HAS_PYOSG_PYPLUSPLUS_DIR "False")
14     ENDIF()
16     IF(EXISTS ${PYOSG_PYPLUSPLUS_GOODIES_DIR})
17       SET(OSG_HAS_PYOSG_PYPLUSPLUS_GOODIES_DIR "True")
18     ELSE()
19       SET(OSG_HAS_PYOSG_PYPLUSPLUS_GOODIES_DIR "False")
20     ENDIF()
22     SET(OSG_CAN_REGEN_PYTHON_BINDINGS FALSE)
24     IF(GCCXML                       AND
25        PYOSG_DIR                    AND
26        PYOSG_PYPLUSPLUS_DIR         AND 
27        PYOSG_PYPLUSPLUS_GOODIES_DIR)
29      IF(EXISTS ${GCCXML}                       AND
30         EXISTS ${PYOSG_DIR}                    AND
31         EXISTS ${PYOSG_PYPLUSPLUS_DIR}         AND 
32         EXISTS ${PYOSG_PYPLUSPLUS_GOODIES_DIR})
34         SET(OSG_CAN_REGEN_PYTHON_BINDINGS TRUE)
36       ENDIF()
37     ENDIF()
39     IF(${CMAKE_PROJECT_NAME} STREQUAL "OpenSG")
40       SET(OSG_PYTHON_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/Bindings/Python")
41     ELSE()
42       SET(OSG_PYTHON_SUPPORT_DIR "${OpenSG_DIR}/share/OpenSG/python")
43     ENDIF()
45     EXECUTE_PROCESS(
46       COMMAND "${CMAKE_COMMAND}" -E copy_if_different
47                 "${OSG_PYTHON_SUPPORT_DIR}/genLibOrder.py"
48                 "${CMAKE_BINARY_DIR}/Python/Helper/genLibOrder.py")
50     FILE(WRITE  "${CMAKE_BINARY_DIR}/Python/Helper/libOrder.py" "# Lib order information\n\n\nlibInfo = {}\n\n")
51     FILE(APPEND "${CMAKE_BINARY_DIR}/Python/Helper/libOrder.py" "fullLibInfo = {}\n\n")
53     IF(EXISTS ${PYOSG_DIR})
55       MESSAGE(STATUS "")
56       MESSAGE(STATUS "preparing python")
57       MESSAGE(STATUS "")
59       FILE(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/Python/Helper")
61       #########################
62       # osggen.py
63       #########################
65       SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osggen.py")
66       SET(_OSG_FILE_OUT_PROC "${CMAKE_BINARY_DIR}/Python/Helper/processed/osggen.py.proc")
67       SET(_OSG_FILE_OUT      "${CMAKE_BINARY_DIR}/Python/Helper/osggen.py")
68       SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Bindings/Python/Patches/osggen.py.patch")
70       EXECUTE_PROCESS(
71         COMMAND "${CMAKE_COMMAND}" -E copy
72                   "${_OSG_FILE_IN}"
73                   "${_OSG_FILE_OUT_PROC}")
75       EXECUTE_PROCESS(COMMAND "patch" 
76                       INPUT_FILE "${_OSG_PATCH_FILE}"
77                       WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/Python/Helper/processed")
79       EXECUTE_PROCESS(
80         COMMAND "${CMAKE_COMMAND}" -E copy_if_different
81                   "${_OSG_FILE_OUT_PROC}"
82                   "${_OSG_FILE_OUT}")
85       #########################
86       # splitGenHelper.py
87       #########################
89       EXECUTE_PROCESS(
90         COMMAND "${CMAKE_COMMAND}" -E copy_if_different
91                   "${OSG_PYTHON_SUPPORT_DIR}/splitGenHelper.py"
92                   "${CMAKE_BINARY_DIR}/Python/Helper/splitGenHelper.py")
93      
94       #########################
95       # settings.py
96       #########################
98       SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/settings.py")
99       SET(_OSG_FILE_OUT_PROC "${CMAKE_BINARY_DIR}/Python/Helper/processed/settings.py.proc")
100       SET(_OSG_FILE_OUT      "${CMAKE_BINARY_DIR}/Python/Helper/settings.py")
101       SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Bindings/Python/Patches/settings.py.patch")
103       EXECUTE_PROCESS(
104         COMMAND "${CMAKE_COMMAND}" -E copy
105                   "${_OSG_FILE_IN}"
106                   "${_OSG_FILE_OUT_PROC}")
108       EXECUTE_PROCESS(COMMAND "patch" 
109                       INPUT_FILE "${_OSG_PATCH_FILE}"
110                       WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/Python/Helper/processed")
112       EXECUTE_PROCESS(
113         COMMAND "${CMAKE_COMMAND}" -E copy_if_different
114                   "${_OSG_FILE_OUT_PROC}"
115                   "${_OSG_FILE_OUT}")
118       IF(CMAKE_PROJECT_NAME STREQUAL "OpenSG")
120         #########################
121         # PreBoostPython.h
122         #########################
124         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/PreBoostPython.h")
125         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/processed/PreBoostPython.h.proc")
126         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/PreBoostPython.h")
128         FILE(READ ${_OSG_FILE_IN} _OSG_FILE_IN_DATA)
130         STRING(REPLACE "<OpenSG/"
131                        "<" _OSG_FILE_IN_DATA_P1 "${_OSG_FILE_IN_DATA}")
133         FILE(WRITE ${_OSG_FILE_OUT_PROC} "${_OSG_FILE_IN_DATA_P1}")
135         EXECUTE_PROCESS(
136           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
137                     "${_OSG_FILE_OUT_PROC}"
138                     "${_OSG_FILE_OUT}")
141         #########################
142         # OsgPtrHelpers.h
143         #########################
145         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/OsgPtrHelpers.h")
146         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/processed/OsgPtrHelpers.h.proc")
147         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/OsgPtrHelpers.h")
149         FILE(READ ${_OSG_FILE_IN} _OSG_FILE_IN_DATA)
151         STRING(REPLACE "<OpenSG/"
152                        "<" _OSG_FILE_IN_DATA_P1 "${_OSG_FILE_IN_DATA}")
154         FILE(WRITE ${_OSG_FILE_OUT_PROC} "${_OSG_FILE_IN_DATA_P1}")
156         EXECUTE_PROCESS(
157           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
158                     "${_OSG_FILE_OUT_PROC}"
159                     "${_OSG_FILE_OUT}")
162         #########################
163         # pypp_OSGBase_aliases.h
164         #########################
166         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/aliases.h")
167         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/processed/pypp_aliases.h.proc")
168         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/pypp_aliases.h")
169         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Bindings/Python/Patches/pypp_aliases.h.patch")
171         EXECUTE_PROCESS(
172           COMMAND "${CMAKE_COMMAND}" -E copy
173                     "${_OSG_FILE_IN}"
174                     "${_OSG_FILE_OUT_PROC}")
176         EXECUTE_PROCESS(COMMAND "patch" 
177                         INPUT_FILE "${_OSG_PATCH_FILE}"
178                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/processed")
180         EXECUTE_PROCESS(
181           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
182                     "${_OSG_FILE_OUT_PROC}"
183                     "${_OSG_FILE_OUT}")
186         #########################
187         # ColorWrapper.h
188         #########################
190         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/ColorWrapper.h")
191         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/processed/ColorWrapper.h.proc")
192         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/ColorWrapper.h")
194         FILE(READ ${_OSG_FILE_IN} _OSG_FILE_IN_DATA)
196         STRING(REPLACE "<OpenSG/"
197                        "<" _OSG_FILE_IN_DATA_P1 "${_OSG_FILE_IN_DATA}")
199         FILE(WRITE ${_OSG_FILE_OUT_PROC} "${_OSG_FILE_IN_DATA_P1}")
201         EXECUTE_PROCESS(
202           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
203                     "${_OSG_FILE_OUT_PROC}"
204                     "${_OSG_FILE_OUT}")
207         #########################
208         # VecStorageWrappers.h
209         #########################
211         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/VecStorageWrappers.h")
212         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/processed/VecStorageWrappers.h.proc")
213         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/VecStorageWrappers.h")
215         FILE(READ ${_OSG_FILE_IN} _OSG_FILE_IN_DATA)
217         STRING(REPLACE "<OpenSG/"
218                        "<" _OSG_FILE_IN_DATA_P1 "${_OSG_FILE_IN_DATA}")
220         FILE(WRITE ${_OSG_FILE_OUT_PROC} "${_OSG_FILE_IN_DATA_P1}")
222         EXECUTE_PROCESS(
223           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
224                     "${_OSG_FILE_OUT_PROC}"
225                     "${_OSG_FILE_OUT}")
228         #########################
229         # BaseWrappers.h
230         #########################
232         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/Wrappers.h")
233         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/processed/BaseWrappers.h.proc")
234         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/BaseWrappers.h")
235         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Patches/wrappers.h.patch")
237         EXECUTE_PROCESS(
238           COMMAND "${CMAKE_COMMAND}" -E copy
239                     "${_OSG_FILE_IN}"
240                     "${_OSG_FILE_OUT_PROC}")
242         EXECUTE_PROCESS(COMMAND "patch" 
243                         INPUT_FILE "${_OSG_PATCH_FILE}"
244                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/processed")
246         EXECUTE_PROCESS(
247           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
248                     "${_OSG_FILE_OUT_PROC}"
249                     "${_OSG_FILE_OUT}")
252         #########################
253         # BaseWrappers.cpp
254         #########################
256         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/Wrappers.cpp")
257         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/processed/BaseWrappers.cpp.proc")
258         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/BaseWrappers.cpp")
259         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Patches/wrappers.cpp.patch")
261         EXECUTE_PROCESS(
262           COMMAND "${CMAKE_COMMAND}" -E copy
263                     "${_OSG_FILE_IN}"
264                     "${_OSG_FILE_OUT_PROC}")
266         EXECUTE_PROCESS(COMMAND "patch" 
267                         INPUT_FILE "${_OSG_PATCH_FILE}"
268                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Source/Base/Bindings/Python/Wrapper/processed")
270         EXECUTE_PROCESS(
271           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
272                     "${_OSG_FILE_OUT_PROC}"
273                     "${_OSG_FILE_OUT}")
277         #########################
278         # SystemWrappers.h
279         #########################
281         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/Wrappers.h")
282         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Wrapper/processed/SystemWrappers.h.proc")
283         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Wrapper/SystemWrappers.h")
284         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Patches/wrappers.h.patch")
286         EXECUTE_PROCESS(
287           COMMAND "${CMAKE_COMMAND}" -E copy
288                     "${_OSG_FILE_IN}"
289                     "${_OSG_FILE_OUT_PROC}")
291         EXECUTE_PROCESS(COMMAND "patch" 
292                         INPUT_FILE "${_OSG_PATCH_FILE}"
293                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Wrapper/processed")
295         EXECUTE_PROCESS(
296           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
297                     "${_OSG_FILE_OUT_PROC}"
298                     "${_OSG_FILE_OUT}")
301         #########################
302         # SystemWrappers.cpp
303         #########################
305         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/Wrappers.cpp")
306         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Wrapper/processed/SystemWrappers.cpp.proc")
307         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Wrapper/SystemWrappers.cpp")
308         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Patches/wrappers.cpp.patch")
310         EXECUTE_PROCESS(
311           COMMAND "${CMAKE_COMMAND}" -E copy
312                     "${_OSG_FILE_IN}"
313                     "${_OSG_FILE_OUT_PROC}")
315         EXECUTE_PROCESS(COMMAND "patch" 
316                         INPUT_FILE "${_OSG_PATCH_FILE}"
317                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Source/System/Bindings/Python/Wrapper/processed")
319         EXECUTE_PROCESS(
320           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
321                     "${_OSG_FILE_OUT_PROC}"
322                     "${_OSG_FILE_OUT}")
325         #########################
326         # helpers.py
327         #########################
329         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/lib/helpers.py")
330         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/processed/helpers.py.proc")
331         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/helpers.py")
332         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Bindings/Python/Patches/helpers.py.patch")
334         EXECUTE_PROCESS(
335           COMMAND "${CMAKE_COMMAND}" -E copy
336                     "${_OSG_FILE_IN}"
337                     "${_OSG_FILE_OUT_PROC}")
339         EXECUTE_PROCESS(COMMAND "patch" 
340                         INPUT_FILE "${_OSG_PATCH_FILE}"
341                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/processed")
343         EXECUTE_PROCESS(
344           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
345                     "${_OSG_FILE_OUT_PROC}"
346                     "${_OSG_FILE_OUT}")
350         #########################
351         # cored_node.py
352         #########################
354         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/lib/cored_node.py")
355         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/processed/cored_node.py.proc")
356         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/cored_node.py")
357         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Bindings/Python/Patches/cored_node.py.patch")
359         EXECUTE_PROCESS(
360           COMMAND "${CMAKE_COMMAND}" -E copy
361                     "${_OSG_FILE_IN}"
362                     "${_OSG_FILE_OUT_PROC}")
364         EXECUTE_PROCESS(COMMAND "patch" 
365                         INPUT_FILE "${_OSG_PATCH_FILE}"
366                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/processed")
368         EXECUTE_PROCESS(
369           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
370                     "${_OSG_FILE_OUT_PROC}"
371                     "${_OSG_FILE_OUT}")
374         #########################
375         # fcd_reflector.py
376         #########################
378         SET(_OSG_FILE_IN       "${PYOSG_DIR}/src/osg_module/lib/fcd_reflector.py")
379         SET(_OSG_FILE_OUT_PROC "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/processed/fcd_reflector.py.proc")
380         SET(_OSG_FILE_OUT      "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/fcd_reflector.py")
381         SET(_OSG_PATCH_FILE    "${CMAKE_SOURCE_DIR}/Bindings/Python/Patches/fcd_reflector.py.patch")
383         EXECUTE_PROCESS(
384           COMMAND "${CMAKE_COMMAND}" -E copy
385                     "${_OSG_FILE_IN}"
386                     "${_OSG_FILE_OUT_PROC}")
388         EXECUTE_PROCESS(COMMAND "patch" 
389                         INPUT_FILE "${_OSG_PATCH_FILE}"
390                         WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/processed")
392         EXECUTE_PROCESS(
393           COMMAND "${CMAKE_COMMAND}" -E copy_if_different
394                     "${_OSG_FILE_OUT_PROC}"
395                     "${_OSG_FILE_OUT}")
397       ENDIF()
399       MESSAGE(STATUS "")
400       MESSAGE(STATUS "done python")
401       MESSAGE(STATUS "")
403     ENDIF(EXISTS ${PYOSG_DIR})
405     SET(_OSG_SRC_PYPATH_HELPERS ${OSG_PYTHON_SUPPORT_DIR}/helpers)
406     SET(_OSG_SRC_PYPATH_OSG     ${CMAKE_BINARY_DIR}/Python/lib/osg2/helpers)
408     SET(_OSG_DST_PYPATH_HELPERS ${CMAKE_BINARY_DIR}/Python/lib/osg2/helpers)
409     SET(_OSG_DST_PYPATH_OSG     ${CMAKE_BINARY_DIR}/Python/lib/osg2/osg)
411     FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Python/lib/osg2)
412     FILE(MAKE_DIRECTORY ${_OSG_DST_PYPATH_HELPERS})
413     FILE(MAKE_DIRECTORY ${_OSG_DST_PYPATH_OSG})
415     OSG_SYMLINK_CHECKED(${OSG_PYTHON_SUPPORT_DIR}/osg2/__init__.py
416                         ${CMAKE_BINARY_DIR}/Python/lib/osg2/__init__.py)
418     OSG_SYMLINK_CHECKED(${_OSG_SRC_PYPATH_HELPERS}/cored_node.py
419                         ${_OSG_DST_PYPATH_HELPERS}/cored_node.py)
420     OSG_SYMLINK_CHECKED(${_OSG_SRC_PYPATH_HELPERS}/fcd_reflector.py
421                         ${_OSG_DST_PYPATH_HELPERS}/fcd_reflector.py)
422     OSG_SYMLINK_CHECKED(${_OSG_SRC_PYPATH_HELPERS}/helpers.py
423                         ${_OSG_DST_PYPATH_HELPERS}/helpers.py)
424     OSG_SYMLINK_CHECKED(${_OSG_SRC_PYPATH_HELPERS}/__init__.py
425                         ${_OSG_DST_PYPATH_HELPERS}/__init__.py)
427     IF(${CMAKE_PROJECT_NAME} STREQUAL "OpenSG")
428       SET(OSG_PYTHON_COMMON_INCDIR "${CMAKE_SOURCE_DIR}/Bindings/Python/Common" CACHE PATH "" FORCE)
429     ELSE()
430       SET(OSG_PYTHON_COMMON_INCDIR "${OpenSG_DIR}/include/OpenSG/Bindings/Python/Common" CACHE PATH "" FORCE)
431     ENDIF()
433     ADD_CUSTOM_TARGET(OSGPy)
435     IF(OSG_CAN_REGEN_PYTHON_BINDINGS)
436       ADD_CUSTOM_TARGET(OSGPyGen)
437     ENDIF()
438 #    ADD_CUSTOM_TARGET(OSGPyBuild)
440   ENDIF(OSGBUILD_PYTHON_BINDINGS)
441 ENDMACRO()
444 MACRO(INSTALL_PYTHON_ELEMENTS)
446   # Neverthless install bindings common headers
447   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/PreBoostPython.h"
448                 "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/OsgPtrHelpers.h"
449                 "${CMAKE_SOURCE_DIR}/Bindings/Python/Common/pypp_aliases.h"
450           DESTINATION include/OpenSG/Bindings/Python/Common)
452   INSTALL(FILES "${CMAKE_SOURCE_DIR}/CMake/OSGSetupPython.cmake"
453           DESTINATION share/OpenSG/cmake)
455   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/genLibOrder.py"
456           DESTINATION share/OpenSG/python/)
458   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/splitGenHelper.py"
459           DESTINATION share/OpenSG/python/)
461   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/osgGenBindings.py.in"
462           DESTINATION share/OpenSG/python/)
464   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/__init__.py.in"
465           DESTINATION share/OpenSG/python/)
467   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/osg2/__init__.py"
468           DESTINATION share/OpenSG/python/osg2)
470   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/cored_node.py"
471           DESTINATION share/OpenSG/python/helpers)
473   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/fcd_reflector.py"
474           DESTINATION share/OpenSG/python/helpers)
476   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/helpers.py"
477           DESTINATION share/OpenSG/python/helpers)
479   INSTALL(FILES "${CMAKE_SOURCE_DIR}/Bindings/Python/helpers/__init__.py"
480           DESTINATION share/OpenSG/python/helpers)
482 ENDMACRO()