From d14fe813a9a8e7a54d463bbc57badb91633cfb26 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Fri, 24 Dec 2010 09:48:16 +0100 Subject: [PATCH] Add the hla directory to the cmake build system. --- CMakeLists.txt | 3 ++ simgear/CMakeLists.txt | 1 + simgear/hla/CMakeLists.txt | 65 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 simgear/hla/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index efeb5bad..fc20d77b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index d78e6f94..6080b59e 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -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 index 00000000..bae6eb73 --- /dev/null +++ b/simgear/hla/CMakeLists.txt @@ -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() -- 2.39.5