mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
Update OpenAL Soft CMakeLists.txt to work with megasource
This commit is contained in:
@@ -41,16 +41,16 @@ OPTION(ALSOFT_DLOPEN "Check for the dlopen API for loading optional libs" ON)
|
||||
|
||||
OPTION(ALSOFT_WERROR "Treat compile warnings as errors" OFF)
|
||||
|
||||
OPTION(ALSOFT_UTILS "Build and install utility programs" ON)
|
||||
OPTION(ALSOFT_NO_CONFIG_UTIL "Disable building the alsoft-config utility" OFF)
|
||||
OPTION(ALSOFT_UTILS "Build and install utility programs" OFF)
|
||||
OPTION(ALSOFT_NO_CONFIG_UTIL "Disable building the alsoft-config utility" ON)
|
||||
|
||||
OPTION(ALSOFT_EXAMPLES "Build and install example programs" ON)
|
||||
OPTION(ALSOFT_TESTS "Build and install test programs" ON)
|
||||
OPTION(ALSOFT_EXAMPLES "Build and install example programs" OFF)
|
||||
OPTION(ALSOFT_TESTS "Build and install test programs" OFF)
|
||||
|
||||
OPTION(ALSOFT_CONFIG "Install alsoft.conf sample configuration file" ON)
|
||||
OPTION(ALSOFT_HRTF_DEFS "Install HRTF definition files" ON)
|
||||
OPTION(ALSOFT_AMBDEC_PRESETS "Install AmbDec preset files" ON)
|
||||
OPTION(ALSOFT_INSTALL "Install headers and libraries" ON)
|
||||
OPTION(ALSOFT_CONFIG "Install alsoft.conf sample configuration file" OFF)
|
||||
OPTION(ALSOFT_HRTF_DEFS "Install HRTF definition files" OFF)
|
||||
OPTION(ALSOFT_AMBDEC_PRESETS "Install AmbDec preset files" OFF)
|
||||
OPTION(ALSOFT_INSTALL "Install headers and libraries" OFF)
|
||||
|
||||
if(DEFINED SHARE_INSTALL_DIR)
|
||||
message(WARNING "SHARE_INSTALL_DIR is deprecated. Use the variables provided by the GNUInstallDirs module instead")
|
||||
@@ -1351,10 +1351,13 @@ TARGET_INCLUDE_DIRECTORIES(${IMPL_TARGET}
|
||||
TARGET_COMPILE_OPTIONS(${IMPL_TARGET} PRIVATE ${C_FLAGS})
|
||||
TARGET_LINK_LIBRARIES(${IMPL_TARGET}
|
||||
PRIVATE ${LINKER_FLAGS} ${COMMON_LIB} ${EXTRA_LIBS} ${MATH_LIB})
|
||||
TARGET_INCLUDE_DIRECTORIES(${IMPL_TARGET} PUBLIC include)
|
||||
IF(TARGET build_version)
|
||||
ADD_DEPENDENCIES(${IMPL_TARGET} build_version)
|
||||
ENDIF()
|
||||
|
||||
SET(OPENAL_LIB_NAME ${IMPL_TARGET} PARENT_SCOPE)
|
||||
|
||||
IF(WIN32 AND MINGW AND ALSOFT_BUILD_IMPORT_LIB AND NOT LIBTYPE STREQUAL "STATIC")
|
||||
FIND_PROGRAM(SED_EXECUTABLE NAMES sed DOC "sed executable")
|
||||
FIND_PROGRAM(DLLTOOL_EXECUTABLE NAMES "${DLLTOOL}" DOC "dlltool executable")
|
||||
@@ -1663,3 +1666,7 @@ IF(ALSOFT_EXAMPLES)
|
||||
MESSAGE(STATUS "")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
if(MEGA)
|
||||
install(TARGETS ${IMPL_TARGET} RUNTIME DESTINATION . LIBRARY DESTINATION .)
|
||||
ENDIF()
|
||||
|
||||
Reference in New Issue
Block a user