Use the find_dependency option to parse Simgear dependencies to FlightGear

This commit is contained in:
Erik Hofman
2021-03-08 16:15:14 +01:00
parent 023364e245
commit c0205f7eb2
3 changed files with 12 additions and 3 deletions
+4
View File
@@ -131,6 +131,10 @@ install(TARGETS SimGearCore
# we expose ZLib in some of our headers
target_link_libraries(SimGearCore PUBLIC ZLIB::ZLIB)
if (SG_HAVE_DDS)
target_link_libraries(SimGearCore PRIVATE CycloneDDS::ddsc)
endif()
if (ENABLE_RTI)
target_sources(SimGearCore PRIVATE $<TARGET_OBJECTS:rti> $<TARGET_OBJECTS:rti13>)
target_link_libraries(SimGearCore PRIVATE PkgConfig::RTI)