mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-12 05:32:30 +00:00
19 lines
674 B
Text
19 lines
674 B
Text
|
cmake_minimum_required(VERSION 3.6.0)
|
||
|
|
||
|
project ( fluidsynth-assetloader C )
|
||
|
|
||
|
set ( fluidsynth-assetloader_sources fluid_androidasset.c )
|
||
|
|
||
|
add_library ( fluidsynth-assetloader SHARED ${fluidsynth-assetloader_sources} )
|
||
|
|
||
|
target_compile_options ( fluidsynth-assetloader
|
||
|
PRIVATE -v
|
||
|
PRIVATE -Wall
|
||
|
PRIVATE "$<$<CONFIG:DEBUG>:-Werror>") # Only include -Werror when building debug config
|
||
|
|
||
|
include_directories ( ../../../include )
|
||
|
|
||
|
set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -L../../../dist/${ANDROID_ABI} -lfluidsynth" )
|
||
|
|
||
|
target_link_libraries ( fluidsynth-assetloader PRIVATE log android )
|