X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=CMakeLists.txt;h=673976b5d76754465bf17ecb8dbe61c5ead51f12;hb=9f9dd935e7a5f0e4481c505f81bf7341d48e1315;hp=de0b23cfa364b31730ca0dc72e80ed354bfc1060;hpb=3e2af32c8a7eb9c2c81e8c36f887e5c3474ec671;p=flightgear.git diff --git a/CMakeLists.txt b/CMakeLists.txt index de0b23cfa..673976b5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,6 +175,7 @@ option(ENABLE_PROFILE "Set to ON to build FlightGear with gperftools profilin option(SYSTEM_SQLITE "Set to ON to build FlightGear with the system's SQLite3 library" OFF) option(ENABLE_IAX "Set to ON to build FlightGear with IAXClient/fgcom built-in (default)" ON) option(USE_DBUS "Set to ON to build FlightGear with DBus screensaver interaction (default on Linux)" ${USE_DBUS_DEFAULT}) +option(USE_AEONWAVE "Set to ON to use AeonWave instead of OpenAL" OFF) option(SYSTEM_SPEEX "Set to ON to build IAXClient with the system's speex and speexdsp library" ${SYSTEM_SPEEX_DEFAULT}) option(SYSTEM_GSM "Set to ON to build IAXClient with the system's GSM library" ${SYSTEM_GSM_DEFAULT}) option(SYSTEM_FLITE "Set to ON to build Flightgear with the system's Flite library" ${SYSTEM_FLITE_DEFAULT}) @@ -383,11 +384,21 @@ include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} - ${OPENAL_INCLUDE_DIR} ${SIMGEAR_INCLUDE_DIRS} ${PLIB_INCLUDE_DIR} ${SQLITE3_INCLUDED_DIR} ) +if (USE_AEONWAVE) + find_package(AAX COMPONENTS aax REQUIRED) + include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} + ${AAX_INCLUDE_DIR} + ) +else() + include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS} + ${OPENAL_INCLUDE_DIR} + ) +endif() + include_directories(${PROJECT_SOURCE_DIR}) include_directories(${PROJECT_SOURCE_DIR}/src) # following is needed, because config.h is include 'bare', whereas