1
0
Fork 0
flightgear/CMakeModules/SetupFGFSLibraries.cmake

70 lines
1.8 KiB
CMake
Raw Normal View History

function(setup_fgfs_libraries target)
if(RTI_FOUND)
set(HLA_LIBRARIES ${RTI_LDFLAGS})
else()
set(HLA_LIBRARIES "")
endif()
if(ENABLE_JSBSIM)
target_link_libraries(${target} JSBSim)
endif()
if(ENABLE_IAX)
2020-08-19 13:49:50 +00:00
target_link_libraries(${target} iaxclient_lib)
endif()
if(HAVE_DBUS)
# ALIAS doesn't work with CMake 3.10, so we need
# variable to store the target name
target_link_libraries(${target} ${dbus_target})
endif()
if(X11_FOUND)
target_link_libraries(${target} ${X11_LIBRARIES})
endif()
target_link_libraries(${target} fgsqlite3 fgvoicesynth fgembeddedresources)
2020-08-19 13:49:50 +00:00
target_link_libraries(${target}
SimGearCore
SimGearScene
2020-08-19 13:49:50 +00:00
Boost::boost
${EVENT_INPUT_LIBRARIES}
${HLA_LIBRARIES}
${OPENGL_LIBRARIES}
${OPENSCENEGRAPH_LIBRARIES}
${PLATFORM_LIBS}
${PLIB_LIBRARIES}
)
2020-08-22 20:33:57 +00:00
if (ENABLE_SWIFT)
# ALIAS doesn't work with CMake 3.10, so we need
# variable to store the target name
target_link_libraries(${target} ${dbus_target} ${libEvent_target})
2020-08-22 20:33:57 +00:00
endif()
if (ENABLE_PLIB_JOYSTICK)
target_link_libraries(${target} PLIBJoystick)
endif()
target_link_libraries(${target} PLIBFont)
# FIXME : rewrite options.cxx / SetupRootDialog.hxx not
# to require this dependency
if (HAVE_QT)
target_link_libraries(${target} Qt5::Core Qt5::Widgets fglauncher fgqmlui)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
target_link_libraries(${target} execinfo)
endif()
2019-08-12 16:52:53 +00:00
if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
target_link_libraries(${target} execinfo)
endif()
if (TARGET sentry::sentry)
target_link_libraries(${target} sentry::sentry)
endif()
endfunction()