Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « oiio « intern « imbuf « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc864f7f11a32ac0f90ab2fd9ec7dc7a96780ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2013 Blender Foundation. All rights reserved.

set(INC
  .
  ..
  ../..
  ../../../blenkernel
  ../../../blenlib
  ../../../makesdna
  ../../../../../intern/guardedalloc
  ../../../../../intern/utfconv
)

set(INC_SYS

)

set(SRC
  openimageio_api.h

  openimageio_api.cpp
)

set(LIB
)

if(WITH_OPENIMAGEIO)
  list(APPEND INC_SYS
    ${OPENIMAGEIO_INCLUDE_DIRS}
    ${BOOST_INCLUDE_DIR}
  )
  list(APPEND LIB
    ${OPENIMAGEIO_LIBRARIES}
    ${PUGIXML_LIBRARIES}
  )
  if(WITH_IMAGE_OPENEXR)
    list(APPEND INC_SYS
      ${OPENEXR_INCLUDE_DIRS}
    )
    list(APPEND LIB
      ${OPENEXR_LIBRARIES}
    )
  endif()

  list(APPEND LIB
    ${BOOST_LIBRARIES}
  )

  add_definitions(-DWITH_OPENIMAGEIO)
endif()

blender_add_lib(bf_imbuf_openimageio "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")