forked from NIMBUS-Cars/blue_car
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (37 loc) · 1.07 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
cmake_minimum_required(VERSION 3.0.2)
project(blue_car)
set(OpenCV_DIR /home/car/opencv/build)
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda)
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_runtime geometry_msgs sensor_msgs OpenCV cv_bridge image_transport message_generation)
add_message_files(
DIRECTORY
msg
FILES
CarObject.msg
CarObjects.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp rospy message_runtime
)
catkin_package(
CATKIN_DEPENDS message_runtime
)
set(Torch_DIR /home/car/.local/lib/python3.6/site-packages/torch/share/cmake/Torch)
find_package(Torch REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Torch_INCLUDE_DIRS}
)
catkin_install_python(PROGRAMS
scripts/safety.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
#add_executable(real_car_lane_follow src/fastLaneFollow.cpp)
#add_dependencies(real_car_lane_follow ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
#target_link_libraries(real_car_lane_follow ${catkin_LIBRARIES} ${TORCH_LIBRARIES})