]> git.mxchange.org Git - simgear.git/blob - simgear/bvh/CMakeLists.txt
bvh: Move the basic bounding volume tree functionality into core.
[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     BVHTransform.hxx
20     BVHVisitor.hxx
21 )
22
23 set(SOURCES
24     BVHGroup.cxx
25     BVHLineGeometry.cxx
26     BVHLineSegmentVisitor.cxx
27     BVHMotionTransform.cxx
28     BVHNode.cxx
29     BVHStaticBinary.cxx
30     BVHStaticGeometry.cxx
31     BVHStaticLeaf.cxx
32     BVHStaticNode.cxx
33     BVHStaticTriangle.cxx
34     BVHSubTreeCollector.cxx
35     BVHTransform.cxx
36 )
37
38 simgear_component(bvh bvh "${SOURCES}" "${HEADERS}")
39
40 if(ENABLE_TESTS)
41   if (SIMGEAR_SHARED)
42     set(TEST_LIBS SimGearCore)
43   else()
44     set(TEST_LIBS sgbvh sgmath sgstructure sgdebug)
45   endif()
46
47   add_executable(bvhtest bvhtest.cxx)
48   target_link_libraries(bvhtest ${TEST_LIBS})
49   add_test(bvhtest ${EXECUTABLE_OUTPUT_PATH}/bvhtest)
50 endif(ENABLE_TESTS)