1
0
Fork 0
flightgear/CMakeModules/SetupSwiftLibraries.cmake

20 lines
649 B
CMake
Raw Permalink Normal View History

2020-08-19 13:49:50 +00:00
if (ENABLE_SWIFT)
# DBUS
# our local FindDBus.cmake file uses pkg-config on non-Windows
# we want to ensure our local prefixes are searched, so set this
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH 1)
# unfortunately CMAKE_INSTALL_PREFIX is not searched, so add that manually
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX})
find_package(DBus)
find_package(LibEvent)
if (TARGET ${dbus_target} AND TARGET ${libEvent_target})
2020-08-19 13:49:50 +00:00
message(STATUS "SWIFT support enabled")
else()
message(STATUS "SWIFT support disabled, dbus and/or LibEvent not found")
set(ENABLE_SWIFT 0)
endif()
endif()