Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] CMake error & warning fixes on develop #1808

Merged
merged 3 commits into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@ project(autoware_driveworks_gmsl_interface)

find_package(CUDA)

if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64" AND CUDA_FOUND)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(DRIVEWORKS_LINKER_FLAGS "-Wl,--unresolved-symbols=ignore-in-object-files -Wl,--allow-shlib-undefined")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(DRIVEWORKS_LINKER_FLAGS "-Wl,-undefined,dynamic_lookup")
endif()

add_definitions(-DVIBRANTE)

find_package(catkin REQUIRED COMPONENTS
find_package(catkin REQUIRED COMPONENTS
amc-nu marked this conversation as resolved.
Show resolved Hide resolved
autoware_build_flags
roscpp
sensor_msgs
Expand All @@ -21,14 +12,23 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64" AND CUDA_FOUND)
image_transport
camera_info_manager
nodelet
)
)

catkin_package(
catkin_package(
amc-nu marked this conversation as resolved.
Show resolved Hide resolved
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS
sensor_msgs
std_msgs
)
)

if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64" AND CUDA_FOUND)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(DRIVEWORKS_LINKER_FLAGS "-Wl,--unresolved-symbols=ignore-in-object-files -Wl,--allow-shlib-undefined")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(DRIVEWORKS_LINKER_FLAGS "-Wl,-undefined,dynamic_lookup")
endif()

add_definitions(-DVIBRANTE)

include_directories(
include
Expand Down
71 changes: 26 additions & 45 deletions ros/src/simulation/lgsvl_simulator_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,61 +1,42 @@
cmake_minimum_required(VERSION 2.8.3)
project(lgsvl_simulator_bridge)

## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
autoware_msgs
geometry_msgs
roscpp
rospy
roslib
sensor_msgs
)
autoware_msgs
geometry_msgs
roscpp
rospy
roslib
sensor_msgs
)

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if your package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES lgsvl_simulator_bridge
CATKIN_DEPENDS autoware_msgs geometry_msgs roscpp rospy sensor_msgs
# DEPENDS system_lib
CATKIN_DEPENDS
autoware_msgs
geometry_msgs
roscpp
rospy
sensor_msgs
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)

#############
## Install ##
#############
foreach(programs)
install(TARGETS ${programs}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
${catkin_INCLUDE_DIRS}
)
endforeach(nodes)

install(DIRECTORY include
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
foreach (programs)
install(TARGETS ${programs}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
endforeach (programs)

foreach(dir launch rviz)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)
foreach (dir launch rviz)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach (dir)

install(PROGRAMS scripts/launch_sim.bash DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(PROGRAMS scripts/launch_sim.bash
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)