2017-12-06 21:43:47 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
PROJECT(Core)
|
|
|
|
|
2017-12-13 22:29:28 +08:00
|
|
|
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/..)
|
|
|
|
|
2017-12-06 21:43:47 +08:00
|
|
|
ADD_DEFINITIONS(-fpermissive)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(core_include)
|
|
|
|
|
|
|
|
FILE(GLOB MAIN src/*.cpp)
|
|
|
|
FILE(GLOB ADAPTER src/adapter/api_linux.cpp
|
|
|
|
src/adapter/audio_linux.cpp
|
|
|
|
src/adapter/msg_linux.cpp)
|
|
|
|
|
|
|
|
ADD_LIBRARY(core
|
|
|
|
${MAIN}
|
|
|
|
${ADAPTER})
|
|
|
|
TARGET_LINK_LIBRARIES(core
|
|
|
|
pthread
|
|
|
|
dl
|
|
|
|
sample)
|
2018-08-30 16:48:23 +08:00
|
|
|
|
|
|
|
execute_process(
|
2018-09-03 17:14:03 +08:00
|
|
|
COMMAND ${CMAKE_SOURCE_DIR}/build.sh Core
|
2018-08-30 16:48:23 +08:00
|
|
|
)
|