]> git.mxchange.org Git - simgear.git/blob - simgear/hla/CMakeLists.txt
Add the hla directory to the cmake build system.
[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     RTIObjectClass.cxx
30     RTIObjectInstance.cxx
31     RTIFederate.cxx
32     HLAArrayDataElement.cxx
33     HLAArrayDataType.cxx
34     HLABasicDataElement.cxx
35     HLABasicDataType.cxx
36     HLADataElement.cxx
37     HLADataType.cxx
38     HLAEnumeratedDataElement.cxx
39     HLAEnumeratedDataType.cxx
40     HLAFederate.cxx
41     HLAFixedRecordDataElement.cxx
42     HLAFixedRecordDataType.cxx
43     HLAObjectClass.cxx
44     HLAObjectInstance.cxx
45     HLAOMTXmlVisitor.cxx
46     HLAPropertyDataElement.cxx
47     HLARawDataElement.cxx
48     HLAVariantDataElement.cxx
49     HLAVariantDataType.cxx
50     )
51 simgear_component(hla hla "${HLA_SOURCES}" "${HLA_HEADERS}")
52
53 if(RTI_FOUND)
54   set(HLA13_HEADERS
55     HLA13Federate.hxx
56     )
57   set(HLA13_SOURCES
58     RTI13ObjectClass.cxx
59     RTI13ObjectInstance.cxx
60     RTI13Federate.cxx
61     HLA13Federate.cxx
62     )
63   simgear_component(hla13 hla "${HLA13_SOURCES}" "${HLA13_HEADERS}")
64   set_property(TARGET sghla13 APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}")
65 endif()