]> git.mxchange.org Git - simgear.git/blobdiff - simgear/CMakeLists.txt
cmake: Make rti/hla compile again.
[simgear.git] / simgear / CMakeLists.txt
index 872be32a7cd94401fbce6b7d129abd021e356094..62f4a4052a0a4e385d56c22794e256e2ae955ede 100644 (file)
@@ -100,5 +100,10 @@ else()
     endif(NOT SIMGEAR_HEADLESS)
 endif(SIMGEAR_SHARED)
 
-
-
+if(ENABLE_RTI)
+    # Ugly first aid to make hla compile agian
+    set_property(SOURCE hla/RTI13InteractionClass.cxx hla/RTI13ObjectClass.cxx
+        hla/RTI13ObjectInstance.cxx hla/RTI13Federate.cxx
+        hla/RTI13FederateFactory.cxx
+        APPEND PROPERTY COMPILE_FLAGS "-I${RTI_INCLUDE_DIR}")
+endif(ENABLE_RTI)