1 Star 0 Fork 10

handsome_feng/libkysdk-system

forked from openKylin/libkysdk-system 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
公子文彬 提交于 2022-06-13 16:13 . Import Upstream version 1.2.0kylin4
cmake_minimum_required(VERSION 3.1.3)
project(kysdk-system)
include(CMakePackageConfigHelpers)
include(FindPkgConfig)
pkg_check_modules(PKGS REQUIRED
dbus-1
glib-2.0
dbus-glib-1
libudev
)
include_directories(${PKGS_INCLUDE_DIRS})
include_directories("${PROJECT_BINARY_DIR}")
include_directories("/usr/include/kysdk/kysdk-base")
link_directories("/usr/lib/kysdk/kysdk-base")
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_BUILD_TYPE Debug)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
add_definitions(-DRELEASE_BUILD)
set(CMAKE_C_FLAGS "$ENV{CFLAGS} -O2 -Wall")
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -Wall")
else (CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
message("CMake Build Type: ${CMAKE_BUILD_TYPE}")
set(CMAKE_C_FLAGS "$ENV{CFLAGS} -g -O0 -Wall")
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -g -O0 -Wall")
endif()
message("Build Type: ${CMAKE_BUILD_TYPE}")
set (CMAKE_INSTALL_PREFIX /usr)
set (CMAKE_INSTALL_RPATH /usr/lib/kysdk/kysdk-system;/usr/lib/kysdk/kysdk-base)
set (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
add_subdirectory(src)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/handsome_feng/libkysdk-system.git
git@gitee.com:handsome_feng/libkysdk-system.git
handsome_feng
libkysdk-system
libkysdk-system
openkylin/yangtze

搜索帮助