代码拉取完成,页面将自动刷新
同步操作将从 ViewFaceCore/SeetaGenderPredictor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 2.8)
set(SeetaGenderPredictor_NAME "SeetaGenderPredictor" CACHE STRING "The SeetaGenderPredictor library name")
set(SeetaGenderPredictor_VERSION_MAJOR "6")
set(SeetaGenderPredictor_VERSION_MINOR "0")
set(SeetaGenderPredictor_VERSION_SINOR "0")
set(SeetaGenderPredictor_VERSION "${SeetaGenderPredictor_VERSION_MAJOR}${SeetaGenderPredictor_VERSION_MINOR}${SeetaGenderPredictor_VERSION_SINOR}")
project(${SeetaGenderPredictor_NAME}${SeetaGenderPredictor_VERSION})
# set(CMAKE_VERBOSE_MAKEFILE on)
set(SOLUTION_DIR ${CMAKE_CURRENT_SOURCE_DIR})
# option for shared or static
set(TARGET "SHARED" CACHE STRING "SHARED or STATIC" FORCE)
# option for SeetaAuthorize
option(SEETA_AUTHORIZE "Using seeta authorize" OFF)
option(SEETA_MODEL_ENCRYPT "Using model encrypt" ON)
# option for build android
option(BUILD_ANDROID "Buid android" OFF)
message(STATUS "Build android: " ${BUILD_ANDROID})
# gether moduls
list(APPEND CMAKE_MODULE_PATH ${SOLUTION_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH ${SOLUTION_DIR}/../build/cmake)
message(STATUS "CMAKE_MODULE_PATH: ${CMAKE_MODULE_PATH}")
# install dir
set(CMAKE_INSTALL_PREFIX ${SOLUTION_DIR}/../build CACHE STRING "set install prefix" FORCE)
set(SEETA_INSTALL_PATH "" CACHE STRING "seeta install path")
if(SEETA_INSTALL_PATH STREQUAL "")
else()
set(CMAKE_INSTALL_PREFIX ${SEETA_INSTALL_PATH} CACHE STRING "set install prefix" FORCE)
endif()
message(STATUS "cmake install prefix: ${CMAKE_INSTALL_PREFIX}")
# set base flags
set(CMAKE_CFLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -w")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -w -std=c++11")
# option for platform
set(PLATFORM "auto" CACHE STRING "auto, x86 or x64")
set(CONFIGURATION "Release" CACHE STRING "Debug or Release")
# env
include(LOCAL_ENV)
include(INC_ORZ)
if(SEETA_AUTHORIZE)
add_definitions(-DSEETA_AUTO_ENCRYPT)
set(SEETA_AUTO_ENCRYPT ON)
message(STATUS "Seeta Authorize: ON")
else()
message(STATUS "Seeta Authorize: OFF")
endif()
if(SEETA_MODEL_ENCRYPT)
add_definitions(-DSEETA_MODEL_ENCRYPT)
set(SEETA_MODEL_ENCRYPT ON)
message(STATUS "Seeta Model Encrypt: ON")
else()
message(STATUS "Seeta Model Encrypt: OFF")
endif()
if(SEETA_AUTHORIZE)
message(STATUS "SeetaAuthorize: " ${SEETA_AUTHORIZE})
elseif()
endif ()
if (SEETA_MODEL_ENCRYPT)
message(STATUS "SeetaModelEncrypt: " ${SEETA_MODEL_ENCRYPT})
endif ()
if ("${PLATFORM}" STREQUAL "x86")
message(STATUS "Platform: " ${PLATFORM})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
elseif ("${PLATFORM}" STREQUAL "x64")
message(STATUS "Platform: " ${PLATFORM})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
else()
message(STATUS "Platform: " ${PLATFORM})
endif()
if ("${CONFIGURATION}" STREQUAL "Debug")
message(STATUS "Configuration: " ${CONFIGURATION})
set(CMAKE_CX_FLAGS "${CMAKE_CX_FLAGS} -O0 -g -ggdb")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -ggdb")
else()
message(STATUS "Configuration: " ${CONFIGURATION})
set(CMAKE_CX_FLAGS "${CMAKE_CX_FLAGS} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
endif()
add_subdirectory(${SOLUTION_DIR}/GenderPredictor)
if(NOT BUILD_ANDROID)
#add_subdirectory(${SOLUTION_DIR}/example)
endif()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。