代码拉取完成,页面将自动刷新
#
# Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
cmake_minimum_required(VERSION 3.8)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
project(ipcweb-backend
LANGUAGES CXX)
set(DESCRIPTION "IP Camera web backend cgi projects")
option(IPCWEBBACKEND_BUILD_TESTS "Build tests executables" OFF)
option(ENABLE_JWT "enbale jwt" ON)
option(MEDIASERVER_ROCKFACE "enbale mediaserver rockface" OFF)
option(USE_RKIPC "use rkipc" OFF)
set(PROJECT_THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/thirdparty")
include(clang-format)
include(cppcheck)
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR NOT DEFINED CMAKE_SYSTEM_PROCESSOR)
message(FATAL_ERROR "This project can only be built for linux")
endif()
set(TARGET_HOST ${CMAKE_SYSTEM_PROCESSOR}-linux)
if (${USE_RKIPC})
find_package(jwt_cpp REQUIRED)
else()
find_package(MiniLogger REQUIRED)
find_package(Cgicc)
find_package(nlohmann_json REQUIRED)
find_package(jwt_cpp REQUIRED)
find_package(OpenSSL REQUIRED)
endif()
include(GNUInstallDirs)
if (${IPCWEBBACKEND_BUILD_TESTS})
enable_testing()
add_subdirectory(thirdparty/googletest)
add_subdirectory(test)
endif()
if (${ENABLE_JWT})
add_definitions(-DENABLE_JWT)
endif()
if (${MEDIASERVER_ROCKFACE})
add_definitions(-DMEDIASERVER_ROCKFACE)
endif()
if (${USE_RKIPC})
add_definitions(-DUSE_RKIPC)
endif()
add_subdirectory(src)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。