|
1 | 1 | project(RadeonRays CXX)
|
2 | 2 |
|
3 | 3 | #Grab RadeonRays sources
|
4 |
| -set(SOURCES |
| 4 | +set(PUBLIC_HEADERS |
| 5 | + include/math/bbox.h |
| 6 | + include/math/float2.h |
| 7 | + include/math/float3.h |
| 8 | + include/math/int2.h |
| 9 | + include/math/mathutils.h |
| 10 | + include/math/matrix.h |
| 11 | + include/math/quaternion.h |
| 12 | + include/math/ray.h |
| 13 | + include/radeon_rays.h |
| 14 | + include/radeon_rays_cl.h |
| 15 | + include/radeon_rays_vk.h) |
| 16 | + |
| 17 | +set(ACCELERATOR_SOURCES |
5 | 18 | src/accelerator/bvh.cpp
|
| 19 | + src/accelerator/bvh.h |
6 | 20 | src/accelerator/bvh2.cpp
|
| 21 | + src/accelerator/bvh2.h |
7 | 22 | src/accelerator/hlbvh.cpp
|
| 23 | + src/accelerator/hlbvh.h |
8 | 24 | src/accelerator/split_bvh.cpp
|
| 25 | + src/accelerator/split_bvh.h) |
| 26 | + |
| 27 | +set(API_SOURCES |
9 | 28 | src/api/radeon_rays.cpp
|
10 | 29 | src/api/radeon_rays_impl.cpp
|
| 30 | + src/api/radeon_rays_impl.h) |
| 31 | + |
| 32 | +set(ASYNC_SOURCES src/async/thread_pool.h) |
| 33 | +set(DEVICE_SOURCES |
| 34 | + src/device/calc_holder.h |
11 | 35 | src/device/calc_intersection_device.cpp
|
| 36 | + src/device/calc_intersection_device.h |
| 37 | + src/device/intersection_device.h) |
| 38 | + |
| 39 | +set(EXCEPT_SOURCES src/except/except.h) |
| 40 | + |
| 41 | +set(INTERSECTOR_SOURCES |
12 | 42 | src/intersector/intersector.cpp
|
| 43 | + src/intersector/intersector.h |
13 | 44 | src/intersector/intersector_2level.cpp
|
| 45 | + src/intersector/intersector_2level.h |
14 | 46 | src/intersector/intersector_bittrail.cpp
|
| 47 | + src/intersector/intersector_bittrail.h |
15 | 48 | src/intersector/intersector_hlbvh.cpp
|
| 49 | + src/intersector/intersector_hlbvh.h |
16 | 50 | src/intersector/intersector_lds.cpp
|
| 51 | + src/intersector/intersector_lds.h |
17 | 52 | src/intersector/intersector_short_stack.cpp
|
| 53 | + src/intersector/intersector_short_stack.h |
18 | 54 | src/intersector/intersector_skip_links.cpp
|
| 55 | + src/intersector/intersector_skip_links.h) |
| 56 | + |
| 57 | +set(PRIMITIVE_SOURCES |
| 58 | + src/primitive/instance.h |
19 | 59 | src/primitive/mesh.cpp
|
| 60 | + src/primitive/mesh.h |
| 61 | + src/primitive/shapeimpl.h) |
| 62 | + |
| 63 | +set(TRANSLATOR_SOURCES |
20 | 64 | src/translator/fatnode_bvh_translator.cpp
|
| 65 | + src/translator/fatnode_bvh_translator.h |
21 | 66 | src/translator/plain_bvh_translator.cpp
|
| 67 | + src/translator/plain_bvh_translator.h |
22 | 68 | src/translator/q_bvh_translator.cpp
|
| 69 | + src/translator/q_bvh_translator.h) |
| 70 | + |
| 71 | +set(UTIL_SOURCES |
| 72 | + src/util/alignedalloc.h |
23 | 73 | src/util/options.cpp
|
24 |
| - src/world/world.cpp) |
| 74 | + src/util/options.h |
| 75 | + src/util/perfect_hash_map.h |
| 76 | + src/util/progressreporter.h) |
| 77 | + |
| 78 | +set(WORLD_SOURCES |
| 79 | + src/world/world.cpp |
| 80 | + src/world/world.h) |
25 | 81 |
|
26 | 82 | if (RR_USE_EMBREE)
|
27 |
| - list (APPEND SOURCES src/device/embree_intersection_device.cpp) |
| 83 | + list (APPEND DEVICE_SOURCES |
| 84 | + src/device/embree_intersection_device.cpp |
| 85 | + src/device/embree_intersection_device.h) |
28 | 86 | endif (RR_USE_EMBREE)
|
29 | 87 |
|
30 | 88 | if (RR_USE_OPENCL)
|
31 |
| - list (APPEND SOURCES src/device/calc_intersection_device_cl.cpp) |
| 89 | + list (APPEND DEVICE_SOURCES |
| 90 | + src/device/calc_intersection_device_cl.cpp |
| 91 | + src/device/calc_intersection_device_cl.h) |
32 | 92 | endif (RR_USE_OPENCL)
|
33 | 93 |
|
34 | 94 | if (RR_USE_VULKAN)
|
35 |
| - list (APPEND SOURCES src/device/calc_intersection_device_vk.cpp) |
| 95 | + list (APPEND DEVICE_SOURCES |
| 96 | + src/device/calc_intersection_device_vk.cpp |
| 97 | + src/device/calc_intersection_device_vk.h) |
36 | 98 | endif (RR_USE_VULKAN)
|
37 | 99 |
|
| 100 | +source_group("accelerator" FILES ${ACCELERATOR_SOURCES}) |
| 101 | +source_group("api" FILES ${API_SOURCES}) |
| 102 | +source_group("async" FILES ${ASYNC_SOURCES}) |
| 103 | +source_group("device" FILES ${DEVICE_SOURCES}) |
| 104 | +source_group("except" FILES ${EXCEPT_SOURCES}) |
| 105 | +source_group("intersecotr" FILES ${INTERSECTOR_SOURCES}) |
| 106 | +source_group("primitive" FILES ${PRIMITIVE_SOURCES}) |
| 107 | +source_group("translator" FILES ${TRANSLATOR_SOURCES}) |
| 108 | +source_group("util" FILES ${UTIL_SOURCES}) |
| 109 | +source_group("world" FILES ${WORLD_SOURCES}) |
| 110 | + |
| 111 | +#Gather all sources together |
| 112 | +set(SOURCES |
| 113 | + ${PUBLIC_HEADERS} |
| 114 | + ${ACCELERATOR_SOURCES} |
| 115 | + ${API_SOURCES} |
| 116 | + ${ASYNC_SOURCES} |
| 117 | + ${DEVICE_SOURCES} |
| 118 | + ${EXCEPT_SOURCES} |
| 119 | + ${INTERSECTOR_SOURCES} |
| 120 | + ${PRIMITIVE_SOURCES} |
| 121 | + ${TRANSLATOR_SOURCES} |
| 122 | + ${UTIL_SOURCES} |
| 123 | + ${WORLD_SOURCES}) |
| 124 | + |
38 | 125 | #Declare RadeonRays library
|
39 | 126 | if (RR_ENABLE_STATIC)
|
40 | 127 | add_library(RadeonRays STATIC ${SOURCES})
|
|
0 commit comments