mirror of
https://github.com/ScrelliCopter/VGM-Tools
synced 2025-02-21 04:09:25 +11:00
21 lines
866 B
CMake
21 lines
866 B
CMake
find_package(ZLIB)
|
|
option(USE_ZLIB "Link Zlib for VGZ support" ${ZLIB_FOUND})
|
|
if (USE_ZLIB AND NOT ZLIB_FOUND)
|
|
message(FATAL_ERROR "USE_ZLIB specified but Zlib was not found")
|
|
endif()
|
|
|
|
add_executable(adpcm adpcm.c)
|
|
set_property(TARGET adpcm PROPERTY C_STANDARD 99)
|
|
target_compile_options(adpcm PRIVATE ${WARNINGS})
|
|
target_link_libraries(adpcm Common::wave $<$<C_COMPILER_ID:Clang,GNU>:m>)
|
|
|
|
add_executable(adpcmb adpcmb.c)
|
|
target_compile_options(adpcmb PRIVATE ${WARNINGS})
|
|
target_link_libraries(adpcmb Common::headers)
|
|
|
|
add_executable(neoadpcmextract neoadpcmextract.c)
|
|
set_property(TARGET neoadpcmextract PROPERTY C_STANDARD 99)
|
|
target_compile_definitions(neoadpcmextract PRIVATE $<$<BOOL:${USE_ZLIB}>:USE_ZLIB=1>)
|
|
target_compile_options(neoadpcmextract PRIVATE ${WARNINGS})
|
|
target_link_libraries(neoadpcmextract $<$<BOOL:${USE_ZLIB}>:ZLIB::ZLIB> Common::headers)
|