1 Star 1 Fork 5

caesar wang/ipcweb-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
Fenrir Lin 提交于 2022-01-11 10:14 . CMakeLists: remove version
#
# 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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/caesar-wang/ipcweb-backend.git
[email protected]:caesar-wang/ipcweb-backend.git
caesar-wang
ipcweb-backend
ipcweb-backend
master

搜索帮助