forked from uzh-rpg/fast_neon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (32 loc) · 1.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
project(fast)
cmake_minimum_required(VERSION 2.8.3)
SET(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Werror -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unknown-pragmas")
# IF(DEFINED ENV{ARM_ARCHITECTURE})
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -mfpu=neon -march=armv7-a")
# ELSE()
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -mmmx -msse -msse -msse2 -msse3 -mssse3 -fomit-frame-pointer")
# ENDIF()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a")
find_package(catkin_simple REQUIRED)
catkin_simple()
set(HEADERS
include/fast/corner_9.h
include/fast/corner_10.h
include/fast/fast.h
include/fast/faster_corner_utilities.h
)
set(SOURCES
src/fast_9.cpp
src/fast_10.cpp
src/fast_10_score.cpp
src/nonmax_3x3.cpp
)
# IF(DEFINED ENV{ARM_ARCHITECTURE})
# LIST(APPEND SOURCES ${PROJECT_SOURCE_DIR}/src/faster_corner_9_neon.cpp)
# ELSE()
# LIST(APPEND SOURCES ${PROJECT_SOURCE_DIR}/src/faster_corner_10_sse.cpp)
# ENDIF()
cs_add_library(${PROJECT_NAME} ${SOURCES} ${HEADERS})
################################################################################
cs_install()
cs_export()