Fix linkage of OpenAL tests
Now we no longer list OpenAL a s apublic dependency of SimGear, we need to explicitly link the tests against OpenAL, since they use it directly, in all cases.
This commit is contained in:
parent
65331599ec
commit
de3625d992
@ -38,28 +38,13 @@ if(ENABLE_TESTS AND ENABLE_SOUND)
|
|||||||
COMPILE_DEFINITIONS "SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"" )
|
COMPILE_DEFINITIONS "SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"" )
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
set( SOUND_TEST_LIBS
|
set( SOUND_TEST_LIBS ${TEST_LIBS} )
|
||||||
${TEST_LIBS}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (USE_AEONWAVE)
|
if (USE_AEONWAVE)
|
||||||
if (SIMGEAR_SHARED)
|
set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS} ${AAX_LIBRARY})
|
||||||
else()
|
|
||||||
set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS}
|
|
||||||
${AAX_LIBRARY}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
create_test(aeonwave_test1)
|
create_test(aeonwave_test1)
|
||||||
|
|
||||||
else ()
|
else ()
|
||||||
if (SIMGEAR_SHARED)
|
set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS} ${OPENAL_LIBRARY})
|
||||||
else()
|
|
||||||
set(SOUND_TEST_LIBS ${SOUND_TEST_LIBS}
|
|
||||||
${OPENAL_LIBRARY}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
create_test(openal_test1)
|
create_test(openal_test1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user