vgmstream/cmake/dependencies/maitrac3plus.cmake
2021-09-19 20:00:39 +03:00

27 lines
805 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})
else()
message(FATAL_ERROR "Path to MAIATRAC3+ must be set. (Use MAIATRAC3PLUS_PATH)")
endif()
endif()
if(NOT USE_MAIATRAC3PLUS)
unset(MAIATRAC3PLUS_SOURCE)
endif()