-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 875 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(goal_detection)
## Add support for C++11, supported in ROS Kinetic and newer
# add_definitions(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
)
FIND_PACKAGE(OpenCV REQUIRED)
#anders wilt em ni compileren
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -march=core-avx-i -O2")
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES goal_detection
# CATKIN_DEPENDS roscpp std_msgs
# DEPENDS system_lib
)
include_directories(
${catkin_INCLUDE_DIRS}
)
LIST(APPEND CMAKE_MODULE_PATH /usr/local/lib/cmake)
add_executable(goal_detection_node src/goal.cpp)
target_link_libraries(goal_detection_node
${catkin_LIBRARIES}
${OpenCV_LIBS}
)