mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Better environment detection for GME and MPT decoders.
This commit is contained in:
parent
015c714b14
commit
0abdac4f65
@ -6,9 +6,9 @@ set (gmedecoder_SOURCES
|
||||
)
|
||||
|
||||
add_definitions(-DHAVE_STDINT_H)
|
||||
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
|
||||
|
||||
if (${BUILD_STANDALONE} MATCHES "true")
|
||||
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
|
||||
add_vendor_includes(gmedecoder)
|
||||
find_vendor_library(GME gme)
|
||||
target_link_libraries(gmedecoder ${GME})
|
||||
@ -17,6 +17,7 @@ else()
|
||||
if ("${GME}" STREQUAL "GME-NOTFOUND")
|
||||
disable_plugin(gmedecoder)
|
||||
else()
|
||||
add_library(gmedecoder SHARED ${gmedecoder_SOURCES})
|
||||
target_link_libraries(gmedecoder ${GME})
|
||||
endif()
|
||||
endif()
|
||||
|
@ -5,9 +5,8 @@ set (openmptdecoder_SOURCES
|
||||
OpenMptIndexerSource.cpp
|
||||
Utility.cpp)
|
||||
|
||||
add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES})
|
||||
|
||||
if (${BUILD_STANDALONE} MATCHES "true")
|
||||
add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES})
|
||||
target_include_directories(openmptdecoder BEFORE PRIVATE ${VENDOR_INCLUDE_DIRECTORIES})
|
||||
find_vendor_library(LIBOPENMPT openmpt)
|
||||
target_link_libraries(openmptdecoder ${LIBOPENMPT})
|
||||
@ -18,6 +17,7 @@ else()
|
||||
if ("${LIBOPENMPT}" STREQUAL "LIBOPENMPT-NOTFOUND")
|
||||
disable_plugin(openmptdecoder)
|
||||
else()
|
||||
add_library(openmptdecoder SHARED ${openmptdecoder_SOURCES})
|
||||
target_link_libraries(openmptdecoder ${LIBOPENMPT} ${LIBMPG123} ${LIBZ})
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user