mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 15:00:11 +01:00
27 lines
822 B
CMake
27 lines
822 B
CMake
if(USE_MAIATRAC3PLUS)
|
|
FetchDependency(MAIATRAC3PLUS
|
|
DIR maiatrac3plus
|
|
)
|
|
|
|
if(MAIATRAC3PLUS_PATH)
|
|
configure_file(
|
|
${VGM_SOURCE_DIR}/ext_libs/maiatrac3plus/CMakeLists.txt
|
|
${MAIATRAC3PLUS_PATH}/MaiAT3PlusDecoder/CMakeLists.txt
|
|
COPYONLY)
|
|
configure_file(
|
|
${VGM_SOURCE_DIR}/ext_libs/maiatrac3plus/maiatrac3plus.h
|
|
${MAIATRAC3PLUS_PATH}/MaiAT3PlusDecoder/maiatrac3plus.h
|
|
COPYONLY)
|
|
configure_file(
|
|
${MAIATRAC3PLUS_PATH}/MaiAT3PlusDecoder/src/base/Mai_mem.cc
|
|
${MAIATRAC3PLUS_PATH}/MaiAT3PlusDecoder/src/base/Mai_Mem.cc
|
|
COPYONLY)
|
|
add_subdirectory(${MAIATRAC3PLUS_PATH}/MaiAT3PlusDecoder ${MAIATRAC3PLUS_BIN} EXCLUDE_FROM_ALL)
|
|
else()
|
|
message(FATAL_ERROR "Path to MAIATRAC3+ must be set. (Use MAIATRAC3PLUS_PATH)")
|
|
endif()
|
|
endif()
|
|
if(NOT USE_MAIATRAC3PLUS)
|
|
unset(MAIATRAC3PLUS_SOURCE)
|
|
endif()
|