From c5d7318acc5a7345d1c5c6d0c4a50287b4a57619 Mon Sep 17 00:00:00 2001 From: Nick Porcino Date: Mon, 1 Mar 2021 18:33:06 -0800 Subject: [PATCH] Create cmake alias targets for the OTIO namespace --- src/opentime/CMakeLists.txt | 2 ++ src/opentimelineio/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/opentime/CMakeLists.txt b/src/opentime/CMakeLists.txt index 217220c3e5..9b47754d07 100644 --- a/src/opentime/CMakeLists.txt +++ b/src/opentime/CMakeLists.txt @@ -14,6 +14,8 @@ add_library(opentime ${OTIO_SHARED_OR_STATIC_LIB} rationalTime.cpp ${OPENTIME_HEADER_FILES}) +add_library(OTIO::opentime ALIAS opentime) + target_include_directories(opentime PRIVATE "${PROJECT_SOURCE_DIR}/src") set_target_properties(opentime PROPERTIES diff --git a/src/opentimelineio/CMakeLists.txt b/src/opentimelineio/CMakeLists.txt index 48d1cffbfd..f0378626ab 100644 --- a/src/opentimelineio/CMakeLists.txt +++ b/src/opentimelineio/CMakeLists.txt @@ -74,6 +74,8 @@ add_library(opentimelineio ${OTIO_SHARED_OR_STATIC_LIB} unknownSchema.cpp ${OPENTIMELINEIO_HEADER_FILES}) +add_library(OTIO::opentimelineio ALIAS opentimelineio) + target_include_directories(opentimelineio PRIVATE "${PROJECT_SOURCE_DIR}/src" "${PROJECT_SOURCE_DIR}/src/deps"