Skip to content

Commit f13ca4c

Browse files
committed
Port Imath includes to Imath/*.h
As suggested by Imath devs, see AcademySoftwareFoundation/Imath#136 (comment) This is possible now that Imath 2 support was dropped Signed-off-by: Julius Künzel <julius.kuenzel@kde.org>
1 parent 646cc1f commit f13ca4c

File tree

10 files changed

+20
-8
lines changed

10 files changed

+20
-8
lines changed

src/opentimelineio/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ target_include_directories(opentimelineio
8282
"${PROJECT_SOURCE_DIR}/src/deps"
8383
"${PROJECT_SOURCE_DIR}/src/deps/rapidjson/include")
8484

85+
if(USE_DEPS_IMATH)
86+
target_include_directories(opentimelineio PRIVATE "${PROJECT_SOURCE_DIR}/src/deps/Imath/src")
87+
endif()
88+
8589
target_link_libraries(opentimelineio
8690
PUBLIC opentime Imath::Imath)
8791

src/opentimelineio/composable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "opentimelineio/serializableObjectWithMetadata.h"
77
#include "opentimelineio/version.h"
88

9-
#include <ImathBox.h>
9+
#include <Imath/ImathBox.h>
1010

1111
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
1212

src/opentimelineio/mediaReference.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "opentimelineio/serializableObjectWithMetadata.h"
77
#include "opentimelineio/version.h"
88

9-
#include <ImathBox.h>
9+
#include <Imath/ImathBox.h>
1010

1111
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
1212

src/opentimelineio/serializableObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "opentimelineio/typeRegistry.h"
1313
#include "opentimelineio/version.h"
1414

15-
#include "ImathBox.h"
15+
#include "Imath/ImathBox.h"
1616
#include "serialization.h"
1717

1818
#include <list>

src/py-opentimelineio/opentimelineio-bindings/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ target_include_directories(_otio
2525
PRIVATE "${PROJECT_SOURCE_DIR}/src/deps/optional-lite/include"
2626
)
2727

28+
if(USE_DEPS_IMATH)
29+
target_include_directories(_otio PRIVATE "${PROJECT_SOURCE_DIR}/src/deps/Imath/src")
30+
endif()
31+
2832
target_link_libraries(_otio PUBLIC opentimelineio opentime)
2933

3034
# The version of pybind11 we are currently using generates an overwhelming number of

src/py-opentimelineio/opentimelineio-bindings/otio_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "opentimelineio/typeRegistry.h"
1515
#include "opentimelineio/stackAlgorithm.h"
1616

17-
#include <ImathBox.h>
17+
#include <Imath/ImathBox.h>
1818

1919
namespace py = pybind11;
2020
using namespace pybind11::literals;

src/py-opentimelineio/opentimelineio-bindings/otio_imath.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#include "otio_utils.h"
88

9-
#include "ImathBox.h"
10-
#include "ImathVec.h"
9+
#include "Imath/ImathBox.h"
10+
#include "Imath/ImathVec.h"
1111

1212
namespace py = pybind11;
1313

src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "otio_utils.h"
3333
#include "otio_anyDictionary.h"
3434

35-
#include "ImathBox.h"
35+
#include "Imath/ImathBox.h"
3636

3737
namespace py = pybind11;
3838
using namespace pybind11::literals;

src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "opentimelineio/safely_typed_any.h"
1212
#include "opentimelineio/stringUtils.h"
1313

14-
#include <ImathBox.h>
14+
#include <Imath/ImathBox.h>
1515

1616
#include <map>
1717
#include <cstring>

tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ include_directories(${PROJECT_SOURCE_DIR}/src
33
${PROJECT_SOURCE_DIR}/src/deps/optional-lite/include
44
${PROJECT_SOURCE_DIR}/src/tests)
55

6+
if(USE_DEPS_IMATH)
7+
include_directories(${PROJECT_SOURCE_DIR}/src/deps/Imath/src)
8+
endif()
9+
610
list(APPEND tests_opentime test_opentime)
711
foreach(test ${tests_opentime})
812
add_executable(${test} utils.h utils.cpp ${test}.cpp)

0 commit comments

Comments
 (0)