• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required(VERSION 3.4.1)
2
3
4### INCLUDE OBOE LIBRARY ###
5
6# Set the path to the Oboe library directory
7set (OBOE_DIR ../../../../..)
8
9# Add the Oboe library as a subproject. Since Oboe is an out-of-tree source library we must also
10# specify a binary directory
11add_subdirectory(${OBOE_DIR} ./oboe-bin)
12
13# Include the Oboe headers
14include_directories(${OBOE_DIR}/include ${OBOE_DIR}/samples/shared ${OBOE_DIR}/samples/debug-utils)
15
16
17### END OBOE INCLUDE SECTION ###
18
19add_library( soundboard SHARED
20        native-lib.cpp
21        SoundBoardEngine.cpp
22        )
23
24target_link_libraries( soundboard log oboe )
25
26# Enable optimization flags: if having problems with source level debugging,
27# disable -Ofast ( and debug ), re-enable it after done debugging.
28target_compile_options(soundboard PRIVATE -Wall -Werror -Ofast)
29