mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 00:20:55 +02:00
Expose OpenAL lib name and the include directory.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user