Skip to content

Commit

Permalink
Create cmake alias targets for the OTIO namespace (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
nporcino-pixar authored Mar 2, 2021
1 parent 291a64f commit e8b6d6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/opentime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/opentimelineio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e8b6d6c

Please sign in to comment.