2016-01-29 17:39:08 +08:00
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
|
|
|
|
find_dependency(ZLIB)
|
2021-01-10 00:30:43 +08:00
|
|
|
find_dependency(LibLZMA)
|
2016-01-29 17:39:08 +08:00
|
|
|
find_dependency(Threads)
|
2020-06-22 02:31:35 +08:00
|
|
|
find_dependency(CURL)
|
2016-01-29 17:39:08 +08:00
|
|
|
|
|
|
|
# OSG
|
|
|
|
|
|
|
|
set(SIMGEAR_HEADLESS @SIMGEAR_HEADLESS@)
|
|
|
|
set(SIMGEAR_SOUND @ENABLE_SOUND@)
|
2017-10-31 17:42:44 +08:00
|
|
|
set(USE_AEONWAVE @USE_AEONWAVE@)
|
2020-08-14 18:11:44 +08:00
|
|
|
set(ENABLE_ASAN @ENABLE_ASAN@)
|
2020-08-24 01:07:47 +08:00
|
|
|
set(SIMGEAR_SHARED @SIMGEAR_SHARED@)
|
|
|
|
|
2017-02-07 07:02:39 +08:00
|
|
|
# SSE/SSE2 support
|
|
|
|
|
|
|
|
set(ENABLE_SIMD @ENABLE_SIMD@)
|
|
|
|
|
2021-03-08 23:15:14 +08:00
|
|
|
# SycloneDDS support
|
|
|
|
set(SG_HAVE_DDS @SG_HAVE_DDS@)
|
|
|
|
if(SG_HAVE_DDS)
|
|
|
|
find_dependency(CycloneDDS)
|
|
|
|
endif()
|
|
|
|
|
2020-03-16 06:29:43 +08:00
|
|
|
# OpenRTI support
|
|
|
|
set(ENABLE_RTI @ENABLE_RTI@)
|
|
|
|
if(ENABLE_RTI)
|
2020-06-22 02:31:35 +08:00
|
|
|
find_dependency(PkgConfig)
|
|
|
|
if(PKG_CONFIG_FOUND)
|
|
|
|
pkg_check_modules(RTI IMPORTED_TARGET hla-rti13)
|
|
|
|
endif(PKG_CONFIG_FOUND)
|
2020-03-16 06:29:43 +08:00
|
|
|
endif(ENABLE_RTI)
|
|
|
|
|
2017-02-26 23:39:48 +08:00
|
|
|
# Alternative terrain engine based on pagedLOD
|
|
|
|
|
|
|
|
set(ENABLE_GDAL @ENABLE_GDAL@)
|
2020-08-23 18:27:02 +08:00
|
|
|
if (ENABLE_GDAL)
|
|
|
|
find_dependency(GDAL)
|
|
|
|
endif()
|
|
|
|
|
2016-01-29 17:39:08 +08:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/SimGearTargets.cmake")
|