]> git.mxchange.org Git - simgear.git/blob - simgear/hla/CMakeLists.txt
Make tsync part of libSimGearCore when building shared libraries
[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     HLADataElementVisitor.hxx
11     HLADataType.hxx
12     HLADataTypeVisitor.hxx
13     HLAEnumeratedDataElement.hxx
14     HLAEnumeratedDataType.hxx
15     HLAFixedRecordDataElement.hxx
16     HLAFixedRecordDataType.hxx
17     HLAFederate.hxx
18     HLAInteractionClass.hxx
19     HLALocation.hxx
20     HLAObjectClass.hxx
21     HLAObjectInstance.hxx
22     HLAOMTXmlVisitor.hxx
23     HLAPropertyDataElement.hxx
24     HLARawDataElement.hxx
25     HLATypes.hxx
26     HLAVariantDataElement.hxx
27     HLAVariantDataType.hxx
28     HLAVariantRecordDataElement.hxx
29     HLAVariantRecordDataType.hxx
30     )
31
32 set(HLA_SOURCES
33     HLAArrayDataElement.cxx
34     HLAArrayDataType.cxx
35     HLABasicDataElement.cxx
36     HLABasicDataType.cxx
37     HLADataElement.cxx
38     HLADataType.cxx
39     HLADataTypeVisitor.cxx
40     HLAEnumeratedDataElement.cxx
41     HLAEnumeratedDataType.cxx
42     HLAFederate.cxx
43     HLAFixedRecordDataElement.cxx
44     HLAFixedRecordDataType.cxx
45     HLAObjectClass.cxx
46     HLAObjectInstance.cxx
47     HLAOMTXmlVisitor.cxx
48     HLAPropertyDataElement.cxx
49     HLARawDataElement.cxx
50     HLAVariantRecordDataElement.cxx
51     HLAVariantRecordDataType.cxx
52     )
53 simgear_component(hla hla "${HLA_SOURCES}" "${HLA_HEADERS}")
54
55 if(RTI_FOUND)
56   set(RTI13_SOURCES
57     RTI13ObjectClass.cxx
58     RTI13ObjectInstance.cxx
59     RTI13Federate.cxx
60     )
61   simgear_component(rti13 hla "${RTI13_SOURCES}" "")
62   set_property(TARGET sgrti13 APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}")
63 endif()
64
65 set(RTI_SOURCES
66   RTIObjectClass.cxx
67   RTIObjectInstance.cxx
68   RTIFederate.cxx
69   )
70 simgear_component(rti hla "${RTI_SOURCES}" "")