This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/thirdparty/miniaudio/CMakeLists.txt
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

28 lines
529 B
CMake

project(miniaudio C)
set_source_files_properties(repo/miniaudio.h
DIRECTORY .
PROPERTIES
LANGUAGE C
COMPILE_FLAGS "-x c"
)
add_library(miniaudio
repo/miniaudio.h
)
target_compile_definitions(miniaudio
PRIVATE
MINIAUDIO_IMPLEMENTATION
PUBLIC
MA_NO_ENCODING
MA_NO_FLAC
$<$<CONFIG:Debug>:MA_DEBUG_OUTPUT>
)
target_include_directories(miniaudio
SYSTEM INTERFACE repo
)
target_link_libraries(miniaudio
$<$<PLATFORM_ID:Linux>:dl>
$<$<PLATFORM_ID:Linux>:m>
$<$<PLATFORM_ID:Linux>:pthread>
)