]> git.mxchange.org Git - simgear.git/commitdiff
Add the hla directory to the cmake build system.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Fri, 24 Dec 2010 08:48:16 +0000 (09:48 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Mon, 17 Jan 2011 20:34:00 +0000 (21:34 +0100)
CMakeLists.txt
simgear/CMakeLists.txt
simgear/hla/CMakeLists.txt [new file with mode: 0644]

index efeb5bad256cb77efd71c9378292891b27e88349..fc20d77ba46477e614f7046c66b73e5d09f93927 100644 (file)
@@ -57,6 +57,9 @@ check_include_file(sys/timeb.h HAVE_SYS_TIMEB_H)
 check_include_file(unistd.h HAVE_UNISTD_H)
 check_include_file(windows.h HAVE_WINDOWS_H)
 
+# See if we have any rti library variant installed
+find_package(RTI)
+
 check_function_exists(gettimeofday HAVE_GETTIMEOFDAY)
 check_function_exists(ftime HAVE_FTIME)
 check_function_exists(timegm HAVE_TIMEGM)
index d78e6f947746ee9c2861cb504b2de92ec0554ede..6080b59e236f6943713dd72bd0a6522983b09dd4 100644 (file)
@@ -5,6 +5,7 @@ foreach( mylibfolder
         bucket
         debug
         ephemeris
+        hla
         io
         magvar
         math
diff --git a/simgear/hla/CMakeLists.txt b/simgear/hla/CMakeLists.txt
new file mode 100644 (file)
index 0000000..bae6eb7
--- /dev/null
@@ -0,0 +1,65 @@
+include (SimGearComponent)
+
+set(HLA_HEADERS
+    RTIData.hxx
+    HLAArrayDataElement.hxx
+    HLAArrayDataType.hxx
+    HLABasicDataElement.hxx
+    HLABasicDataType.hxx
+    HLADataElement.hxx
+    HLADataType.hxx
+    HLADataTypeVisitor.hxx
+    HLAEnumeratedDataElement.hxx
+    HLAEnumeratedDataType.hxx
+    HLAFixedRecordDataElement.hxx
+    HLAFixedRecordDataType.hxx
+    HLAFederate.hxx
+    HLAInteractionClass.hxx
+    HLALocation.hxx
+    HLAObjectClass.hxx
+    HLAObjectInstance.hxx
+    HLAOMTXmlVisitor.hxx
+    HLAPropertyDataElement.hxx
+    HLARawDataElement.hxx
+    HLAVariantDataElement.hxx
+    HLAVariantDataType.hxx
+    )
+
+set(HLA_SOURCES
+    RTIObjectClass.cxx
+    RTIObjectInstance.cxx
+    RTIFederate.cxx
+    HLAArrayDataElement.cxx
+    HLAArrayDataType.cxx
+    HLABasicDataElement.cxx
+    HLABasicDataType.cxx
+    HLADataElement.cxx
+    HLADataType.cxx
+    HLAEnumeratedDataElement.cxx
+    HLAEnumeratedDataType.cxx
+    HLAFederate.cxx
+    HLAFixedRecordDataElement.cxx
+    HLAFixedRecordDataType.cxx
+    HLAObjectClass.cxx
+    HLAObjectInstance.cxx
+    HLAOMTXmlVisitor.cxx
+    HLAPropertyDataElement.cxx
+    HLARawDataElement.cxx
+    HLAVariantDataElement.cxx
+    HLAVariantDataType.cxx
+    )
+simgear_component(hla hla "${HLA_SOURCES}" "${HLA_HEADERS}")
+
+if(RTI_FOUND)
+  set(HLA13_HEADERS
+    HLA13Federate.hxx
+    )
+  set(HLA13_SOURCES
+    RTI13ObjectClass.cxx
+    RTI13ObjectInstance.cxx
+    RTI13Federate.cxx
+    HLA13Federate.cxx
+    )
+  simgear_component(hla13 hla "${HLA13_SOURCES}" "${HLA13_HEADERS}")
+  set_property(TARGET sghla13 APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}")
+endif()