Cleanup: simplify order of initialization with argument parsing
[blender.git] / source / blender / depsgraph / 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) 2014, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22   .
23   ../blenkernel
24   ../blenlib
25   ../bmesh
26   ../draw
27   ../makesdna
28   ../makesrna
29   ../modifiers
30   ../sequencer
31   ../windowmanager
32   ../../../intern/atomic
33   ../../../intern/guardedalloc
34 )
35
36 set(INC_SYS
37 )
38
39 set(SRC
40   intern/builder/deg_builder.cc
41   intern/builder/deg_builder_cache.cc
42   intern/builder/deg_builder_cycle.cc
43   intern/builder/deg_builder_map.cc
44   intern/builder/deg_builder_nodes.cc
45   intern/builder/deg_builder_nodes_rig.cc
46   intern/builder/deg_builder_nodes_scene.cc
47   intern/builder/deg_builder_nodes_view_layer.cc
48   intern/builder/deg_builder_pchanmap.cc
49   intern/builder/deg_builder_relations.cc
50   intern/builder/deg_builder_relations_drivers.cc
51   intern/builder/deg_builder_relations_keys.cc
52   intern/builder/deg_builder_relations_rig.cc
53   intern/builder/deg_builder_relations_scene.cc
54   intern/builder/deg_builder_relations_view_layer.cc
55   intern/builder/deg_builder_remove_noop.cc
56   intern/builder/deg_builder_rna.cc
57   intern/builder/deg_builder_transitive.cc
58   intern/builder/pipeline.cc
59   intern/builder/pipeline_all_objects.cc
60   intern/builder/pipeline_compositor.cc
61   intern/builder/pipeline_from_ids.cc
62   intern/builder/pipeline_render.cc
63   intern/builder/pipeline_view_layer.cc
64   intern/debug/deg_debug.cc
65   intern/debug/deg_debug_relations_graphviz.cc
66   intern/debug/deg_debug_stats_gnuplot.cc
67   intern/eval/deg_eval.cc
68   intern/eval/deg_eval_copy_on_write.cc
69   intern/eval/deg_eval_flush.cc
70   intern/eval/deg_eval_runtime_backup.cc
71   intern/eval/deg_eval_runtime_backup_animation.cc
72   intern/eval/deg_eval_runtime_backup_modifier.cc
73   intern/eval/deg_eval_runtime_backup_movieclip.cc
74   intern/eval/deg_eval_runtime_backup_object.cc
75   intern/eval/deg_eval_runtime_backup_pose.cc
76   intern/eval/deg_eval_runtime_backup_scene.cc
77   intern/eval/deg_eval_runtime_backup_sequence.cc
78   intern/eval/deg_eval_runtime_backup_sequencer.cc
79   intern/eval/deg_eval_runtime_backup_sound.cc
80   intern/eval/deg_eval_runtime_backup_volume.cc
81   intern/eval/deg_eval_stats.cc
82   intern/node/deg_node.cc
83   intern/node/deg_node_component.cc
84   intern/node/deg_node_factory.cc
85   intern/node/deg_node_id.cc
86   intern/node/deg_node_operation.cc
87   intern/node/deg_node_time.cc
88   intern/depsgraph.cc
89   intern/depsgraph_build.cc
90   intern/depsgraph_debug.cc
91   intern/depsgraph_eval.cc
92   intern/depsgraph_physics.cc
93   intern/depsgraph_query.cc
94   intern/depsgraph_query_foreach.cc
95   intern/depsgraph_query_iter.cc
96   intern/depsgraph_registry.cc
97   intern/depsgraph_relation.cc
98   intern/depsgraph_tag.cc
99   intern/depsgraph_type.cc
100   intern/depsgraph_update.cc
101
102   DEG_depsgraph.h
103   DEG_depsgraph_build.h
104   DEG_depsgraph_debug.h
105   DEG_depsgraph_physics.h
106   DEG_depsgraph_query.h
107
108   intern/builder/deg_builder.h
109   intern/builder/deg_builder_cache.h
110   intern/builder/deg_builder_cycle.h
111   intern/builder/deg_builder_map.h
112   intern/builder/deg_builder_nodes.h
113   intern/builder/deg_builder_pchanmap.h
114   intern/builder/deg_builder_relations.h
115   intern/builder/deg_builder_relations_drivers.h
116   intern/builder/deg_builder_relations_impl.h
117   intern/builder/deg_builder_remove_noop.h
118   intern/builder/deg_builder_rna.h
119   intern/builder/deg_builder_transitive.h
120   intern/builder/pipeline.h
121   intern/builder/pipeline_all_objects.h
122   intern/builder/pipeline_compositor.h
123   intern/builder/pipeline_from_ids.h
124   intern/builder/pipeline_render.h
125   intern/builder/pipeline_view_layer.h
126   intern/debug/deg_debug.h
127   intern/debug/deg_time_average.h
128   intern/eval/deg_eval.h
129   intern/eval/deg_eval_copy_on_write.h
130   intern/eval/deg_eval_flush.h
131   intern/eval/deg_eval_runtime_backup.h
132   intern/eval/deg_eval_runtime_backup_animation.h
133   intern/eval/deg_eval_runtime_backup_modifier.h
134   intern/eval/deg_eval_runtime_backup_movieclip.h
135   intern/eval/deg_eval_runtime_backup_object.h
136   intern/eval/deg_eval_runtime_backup_pose.h
137   intern/eval/deg_eval_runtime_backup_scene.h
138   intern/eval/deg_eval_runtime_backup_sequence.h
139   intern/eval/deg_eval_runtime_backup_sequencer.h
140   intern/eval/deg_eval_runtime_backup_sound.h
141   intern/eval/deg_eval_runtime_backup_volume.h
142   intern/eval/deg_eval_stats.h
143   intern/node/deg_node.h
144   intern/node/deg_node_component.h
145   intern/node/deg_node_factory.h
146   intern/node/deg_node_factory_impl.h
147   intern/node/deg_node_id.h
148   intern/node/deg_node_operation.h
149   intern/node/deg_node_time.h
150   intern/depsgraph.h
151   intern/depsgraph_physics.h
152   intern/depsgraph_registry.h
153   intern/depsgraph_relation.h
154   intern/depsgraph_tag.h
155   intern/depsgraph_type.h
156   intern/depsgraph_update.h
157 )
158
159 set(LIB
160 )
161
162 blender_add_lib(bf_depsgraph "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
163
164 if(WITH_GTESTS)
165   set(TEST_SRC
166     intern/builder/deg_builder_rna_test.cc
167   )
168   set(TEST_LIB
169     bf_depsgraph
170   )
171   include(GTestTesting)
172   blender_add_test_lib(bf_depsgraph_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB}")
173 endif()