1 Star 0 Fork 17

npuchenlin/code_cook

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
布树辉 提交于 2019-07-12 09:08 . Add sqlite vfs encryption
cmake_minimum_required(VERSION 2.8)
project(code_cook)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(cmake/PICMake.cmake)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release)
ENDIF()
message("-- Build type: " ${CMAKE_BUILD_TYPE})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -O0 ")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 ")
# enable tcmalloc
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free ")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer -fsanitize-recover=all ")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=leak -fno-omit-frame-pointer -fsanitize-recover=all ")
INCLUDE_DIRECTORIES(libs)
INCLUDE_DIRECTORIES(thirdparty)
INCLUDE_DIRECTORIES(thirdparty/eigen3)
# utils libs
pi_add_target(utils STATIC libs REQUIRED System)
# sub dirs
add_subdirectory(c++)
add_subdirectory(cv)
add_subdirectory(qt)
pi_report_targets()
MESSAGE("INCLUDE_DIRECTORIES = ")
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
foreach(dir ${dirs})
message(STATUS " ${dir}")
endforeach()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/npuchenlin/code_cook.git
git@gitee.com:npuchenlin/code_cook.git
npuchenlin
code_cook
code_cook
master

搜索帮助