mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-03 07:51:45 +00:00
* by target_include_directories * by target_link_libraries, using imported targets when possible
18 lines
712 B
CMake
18 lines
712 B
CMake
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
|
|
|
|
target_include_directories ( fluidsynth-assetloader PRIVATE ../../../include )
|
|
|
|
set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -L../../../dist/${ANDROID_ABI} -lfluidsynth" )
|
|
|
|
target_link_libraries ( fluidsynth-assetloader PRIVATE log android )
|