Cleanup: remove contributors for CMake files
[blender.git] / intern / openvdb / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2015, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         .
23         intern
24 )
25
26 set(INC_SYS
27 )
28
29 set(SRC
30         openvdb_capi.h
31 )
32
33 if(WITH_OPENVDB)
34         add_definitions(
35                 -DWITH_OPENVDB
36                 ${OPENVDB_DEFINITIONS}
37         )
38
39         if(WITH_OPENVDB_3_ABI_COMPATIBLE)
40                 add_definitions(
41                         -DOPENVDB_3_ABI_COMPATIBLE
42                 )
43         endif()
44
45         list(APPEND INC_SYS
46                 ${BOOST_INCLUDE_DIR}
47                 ${TBB_INCLUDE_DIRS}
48                 ${OPENEXR_INCLUDE_DIRS}
49                 ${OPENVDB_INCLUDE_DIRS}
50         )
51
52         list(APPEND SRC
53                 intern/openvdb_dense_convert.cc
54                 intern/openvdb_reader.cc
55                 intern/openvdb_writer.cc
56                 openvdb_capi.cc
57                 openvdb_util.cc
58
59                 intern/openvdb_dense_convert.h
60                 intern/openvdb_reader.h
61                 intern/openvdb_writer.h
62                 openvdb_util.h
63         )
64
65         if(WITH_OPENVDB_BLOSC)
66                 add_definitions(
67                         -DWITH_OPENVDB_BLOSC
68                 )
69         endif()
70 endif()
71
72 blender_add_lib(bf_intern_openvdb "${SRC}" "${INC}" "${INC_SYS}")