From d6d09c135f2175b89483aaa73d105d39f4c9e09b Mon Sep 17 00:00:00 2001 From: rude Date: Wed, 25 Sep 2013 20:45:06 +0200 Subject: [PATCH] Expose OpenAL lib name and the include directory. --- libs/openal-soft-1.15.1/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/openal-soft-1.15.1/CMakeLists.txt b/libs/openal-soft-1.15.1/CMakeLists.txt index fe1953cc..28c4a739 100644 --- a/libs/openal-soft-1.15.1/CMakeLists.txt +++ b/libs/openal-soft-1.15.1/CMakeLists.txt @@ -76,6 +76,8 @@ ELSE() SET(LIBNAME openal) ENDIF() +SET(OPENAL_LIB_NAME ${LIBNAME} PARENT_SCOPE) + IF(NOT LIBTYPE) SET(LIBTYPE SHARED) ENDIF() @@ -759,6 +761,7 @@ IF(WIN32 AND NOT LIBTYPE STREQUAL "STATIC") ENDIF() TARGET_LINK_LIBRARIES(${LIBNAME} ${EXTRA_LIBS}) +TARGET_INCLUDE_DIRECTORIES(${LIBNAME} PUBLIC include) # Add an install target here INSTALL(TARGETS ${LIBNAME}