File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ project(OpenTimelineIO VERSION ${OTIO_VERSION} LANGUAGES C CXX)
25
25
# maintenance and troubleshooting
26
26
27
27
# Installation options
28
- option (OTIO_CXX_INSTALL "Install the C++ bindings" ON )
29
- option (OTIO_PYTHON_INSTALL "Install the Python bindings" OFF )
30
- option (OTIO_DEPENDENCIES_INSTALL "Install OTIO's C++ header dependencies (any and nonstd)" ON )
28
+ option (OTIO_CXX_INSTALL "Install the C++ bindings" ON )
29
+ option (OTIO_PYTHON_INSTALL "Install the Python bindings" OFF )
30
+ option (OTIO_DEPENDENCIES_INSTALL "Install OTIO's C++ header dependencies (any and nonstd)" ON )
31
31
option (OTIO_INSTALL_COMMANDLINE_TOOLS "Install the OTIO command line tools" ON )
32
+ option (OTIO_INSTALL_CONTRIB "Install the opentimelineio_contrib Python package" ON )
32
33
set (OTIO_PYTHON_INSTALL_DIR "" CACHE STRING "Python installation dir (such as the site-packages dir)" )
33
34
34
35
# Build options
Original file line number Diff line number Diff line change
1
+ #------------------------------------------------------------------------------
2
+ # py-opentimelineio/CMakeLists.txt
3
+
1
4
add_subdirectory (opentime-bindings )
2
5
add_subdirectory (opentimelineio-bindings )
6
+
7
+ # Install pure-python OTIO packages to match PyPI wheel structure
8
+ install (DIRECTORY "${PROJECT_SOURCE_DIR} /src/py-opentimelineio/opentimelineio/"
9
+ DESTINATION "${OTIO_RESOLVED_PYTHON_INSTALL_DIR} /opentimelineio" )
10
+
11
+ if (OTIO_INSTALL_COMMANDLINE_TOOLS )
12
+ install (DIRECTORY "${PROJECT_SOURCE_DIR} /src/opentimelineview"
13
+ DESTINATION "${OTIO_RESOLVED_PYTHON_INSTALL_DIR} " )
14
+ endif ()
15
+
16
+ if (OTIO_INSTALL_CONTRIB )
17
+ install (DIRECTORY "${PROJECT_SOURCE_DIR} /contrib/opentimelineio_contrib"
18
+ DESTINATION "${OTIO_RESOLVED_PYTHON_INSTALL_DIR} "
19
+ PATTERN "tests" EXCLUDE
20
+ PATTERN "Makefile" EXCLUDE )
21
+ endif ()
You can’t perform that action at this time.
0 commit comments