1 Star 1 Fork 0

张伟/shape_based_matching

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
meiqua 提交于 2020-05-31 11:50 . refine template extractions
cmake_minimum_required(VERSION 2.8)
set (CMAKE_CXX_STANDARD 14)
project(shape_based_matching)
# debug or release
SET(CMAKE_BUILD_TYPE "Release")
# arm or x86
IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
SET(PLATFORM_COMPILE_FLAGS "-mfpu=neon")
ELSE()
SET(PLATFORM_COMPILE_FLAGS "-march=native")
# some places of the algorithm are designed for 128 SIMD
# so 128 SSE may slightly faster than 256 AVX, you may want this
# SET(PLATFORM_COMPILE_FLAGS "-msse -msse2 -msse3 -msse4 -mssse3") # SSE only
ENDIF()
# SET(PLATFORM_COMPILE_FLAGS "-DMIPP_NO_INTRINSICS") # close SIMD
SET(COMMON_COMPILE_FLAGS "-fopenmp -Wall -Wno-sign-compare")
SET(CMAKE_CXX_FLAGS "${PLATFORM_COMPILE_FLAGS} ${COMMON_COMPILE_FLAGS} $ENV{CXXFLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
# opencv
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/ros/kinetic)
find_package(OpenCV 3 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
# include MIPP headers
include_directories (${INCLUDE_DIRECTORIES} "${CMAKE_CURRENT_SOURCE_DIR}/MIPP/")
# test exe
add_executable(${PROJECT_NAME}_test line2Dup.cpp test.cpp)
target_link_libraries(${PROJECT_NAME}_test ${OpenCV_LIBS})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gakkifan2020/shape_based_matching.git
git@gitee.com:gakkifan2020/shape_based_matching.git
gakkifan2020
shape_based_matching
shape_based_matching
master

搜索帮助