Fix building without OTIO support

Added a new CMake flag that stops any OTIO related cpp files being
built.

Added extra #ifdefs to catch any OTIO related code in other cpp
files.
This commit is contained in:
Thomas Wilshaw
2020-10-15 18:59:06 +01:00
parent 33b479b393
commit 70455c1501
4 changed files with 13 additions and 3 deletions
+4 -1
View File
@@ -14,7 +14,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
add_subdirectory(exportotio)
if(OpenTimelineIO_FOUND)
add_subdirectory(exportotio)
endif()
add_subdirectory(import)
add_subdirectory(load)
add_subdirectory(save)