cmake_minimum_required(VERSION 3.4.1)
盧龍網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,盧龍網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為盧龍上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)營銷網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的盧龍做網(wǎng)站的公司定做!
set(COMMON_DIR ${PROJECT_DIR}/src/main/cpp/common)
set(TOOLKIT_DIR ${PROJECT_DIR}/src/main/cpp/toolkit)
set(LIBYUV_DIR ${TOOLKIT_DIR}/libyuv/libs)
set(LIBYUV_INCLUDE_DIR ${LIBYUV_DIR}/include)
include_directories(${COMMON_DIR}
${LIBYUV_INCLUDE_DIR}
${TOOLKIT_DIR})
link_directories(${LIBYUV_DIR}/${ANDROID_ABI})
add_library(Toolkits
SHARED
${TOOLKIT_DIR}/jni_interface.cpp)
if( ${ANDROID_ABI} MATCHES "armeabi-v7a" )
message(${ANDROID_ABI},當前啟用neon設(shè)置)
endif(${ANDROID_ABI} MATCHES "armeabi-v7a")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_JNI_LOG=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DANDROID_STL=gnustl_static")
set(CMAKE_VERBOSE_MAKEFILE on)
target_link_libraries(Toolkits yuv)
target_link_libraries(Toolkits log)