]> git.mxchange.org Git - simgear.git/blob - simgear/bvh/CMakeLists.txt
bvh: Introduce BVHMaterial independent of SGMaterial.
[simgear.git] / simgear / bvh / CMakeLists.txt
1 include (SimGearComponent)
2
3 set(HEADERS
4     BVHBoundingBoxVisitor.hxx
5     BVHGroup.hxx
6     BVHLineGeometry.hxx
7     BVHLineSegmentVisitor.hxx
8     BVHMotionTransform.hxx
9     BVHNearestPointVisitor.hxx
10     BVHNode.hxx
11     BVHStaticBinary.hxx
12     BVHStaticData.hxx
13     BVHStaticGeometry.hxx
14     BVHStaticGeometryBuilder.hxx
15     BVHStaticLeaf.hxx
16     BVHStaticNode.hxx
17     BVHStaticTriangle.hxx
18     BVHSubTreeCollector.hxx
19     BVHMaterial.hxx
20     BVHTransform.hxx
21     BVHVisitor.hxx
22 )
23
24 set(SOURCES
25     BVHGroup.cxx
26     BVHLineGeometry.cxx
27     BVHLineSegmentVisitor.cxx
28     BVHMotionTransform.cxx
29     BVHNode.cxx
30     BVHStaticBinary.cxx
31     BVHStaticGeometry.cxx
32     BVHStaticLeaf.cxx
33     BVHStaticNode.cxx
34     BVHStaticTriangle.cxx
35     BVHSubTreeCollector.cxx
36     BVHMaterial.cxx
37     BVHTransform.cxx
38 )
39
40 simgear_component(bvh bvh "${SOURCES}" "${HEADERS}")
41
42 if(ENABLE_TESTS)
43   if (SIMGEAR_SHARED)
44     set(TEST_LIBS SimGearCore)
45   else()
46     set(TEST_LIBS sgbvh sgmath sgstructure sgdebug)
47   endif()
48
49   add_executable(bvhtest bvhtest.cxx)
50   target_link_libraries(bvhtest ${TEST_LIBS})
51   add_test(bvhtest ${EXECUTABLE_OUTPUT_PATH}/bvhtest)
52 endif(ENABLE_TESTS)