]> git.mxchange.org Git - simgear.git/blob - simgear/hla/CMakeLists.txt
Move the decision which rti to use into HLAFederate.
[simgear.git] / simgear / hla / CMakeLists.txt
1 include (SimGearComponent)
2
3 set(HLA_HEADERS
4     RTIData.hxx
5     HLAArrayDataElement.hxx
6     HLAArrayDataType.hxx
7     HLABasicDataElement.hxx
8     HLABasicDataType.hxx
9     HLADataElement.hxx
10     HLADataType.hxx
11     HLADataTypeVisitor.hxx
12     HLAEnumeratedDataElement.hxx
13     HLAEnumeratedDataType.hxx
14     HLAFixedRecordDataElement.hxx
15     HLAFixedRecordDataType.hxx
16     HLAFederate.hxx
17     HLAInteractionClass.hxx
18     HLALocation.hxx
19     HLAObjectClass.hxx
20     HLAObjectInstance.hxx
21     HLAOMTXmlVisitor.hxx
22     HLAPropertyDataElement.hxx
23     HLARawDataElement.hxx
24     HLAVariantDataElement.hxx
25     HLAVariantDataType.hxx
26     )
27
28 set(HLA_SOURCES
29     HLAArrayDataElement.cxx
30     HLAArrayDataType.cxx
31     HLABasicDataElement.cxx
32     HLABasicDataType.cxx
33     HLADataElement.cxx
34     HLADataType.cxx
35     HLAEnumeratedDataElement.cxx
36     HLAEnumeratedDataType.cxx
37     HLAFederate.cxx
38     HLAFixedRecordDataElement.cxx
39     HLAFixedRecordDataType.cxx
40     HLAObjectClass.cxx
41     HLAObjectInstance.cxx
42     HLAOMTXmlVisitor.cxx
43     HLAPropertyDataElement.cxx
44     HLARawDataElement.cxx
45     HLAVariantDataElement.cxx
46     HLAVariantDataType.cxx
47     )
48 simgear_component(hla hla "${HLA_SOURCES}" "${HLA_HEADERS}")
49
50 if(RTI_FOUND)
51   set(RTI13_SOURCES
52     RTI13ObjectClass.cxx
53     RTI13ObjectInstance.cxx
54     RTI13Federate.cxx
55     )
56   simgear_component(rti13 hla "${RTI13_SOURCES}" "")
57   set_property(TARGET sgrti13 APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}")
58 endif()
59
60 set(RTI_SOURCES
61   RTIObjectClass.cxx
62   RTIObjectInstance.cxx
63   RTIFederate.cxx
64   )
65 simgear_component(rti hla "${RTI_SOURCES}" "")