vgmstream/cmake/dependencies/maitrac3plus.cmake

27 lines
822 B
CMake
Raw Normal View History

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)
2021-10-22 09:09:33 +02:00
add_subdirectory(${MAIATRAC3PLUS_PATH}/MaiAT3PlusDecoder ${MAIATRAC3PLUS_BIN} EXCLUDE_FROM_ALL)
2021-09-19 19:00:39 +02:00
else()
message(FATAL_ERROR "Path to MAIATRAC3+ must be set. (Use MAIATRAC3PLUS_PATH)")
endif()
endif()
if(NOT USE_MAIATRAC3PLUS)
unset(MAIATRAC3PLUS_SOURCE)
endif()