Skip to content
Snippets Groups Projects
Commit 7cd96c0d authored by Sergi Foix Salmerón's avatar Sergi Foix Salmerón
Browse files

comment DEBUG cmake build and re-structure

parent 98606620
No related branches found
No related tags found
1 merge request!2Kinetic format 2
cmake_minimum_required(VERSION 2.8.3) cmake_minimum_required(VERSION 2.8.3)
project(iri_base_driver) project(iri_base_driver)
set(CMAKE_BUILD_TYPE "DEBUG") # set(CMAKE_BUILD_TYPE "DEBUG")
## Add support for C++11, supported in ROS Kinetic and newer ## Add support for C++11, supported in ROS Kinetic and newer
# add_definitions(-std=c++11) # add_definitions(-std=c++11)
...@@ -9,9 +9,14 @@ set(CMAKE_BUILD_TYPE "DEBUG") ...@@ -9,9 +9,14 @@ set(CMAKE_BUILD_TYPE "DEBUG")
## Find catkin macros and libraries ## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages ## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp dynamic_reconfigure message_generation) find_package(catkin REQUIRED COMPONENTS
roscpp
dynamic_reconfigure
message_generation
)
## System dependencies are found with CMake's conventions ## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(Boost REQUIRED COMPONENTS system thread) find_package(Boost REQUIRED COMPONENTS system thread)
## Uncomment this if the package has a setup.py. This macro ensures ## Uncomment this if the package has a setup.py. This macro ensures
...@@ -92,17 +97,21 @@ catkin_package( ...@@ -92,17 +97,21 @@ catkin_package(
## Specify additional locations of header files ## Specify additional locations of header files
## Your package locations should be listed before other locations ## Your package locations should be listed before other locations
# include_directories(include) # include_directories(include)
INCLUDE_DIRECTORIES(include) include_directories(
include_directories(${catkin_INCLUDE_DIRS}) include
include_directories(${Boost_INCLUDE_DIRS}) ${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
## Declare a cpp library ## Declare a cpp library
# add_library(foo # add_library(foo
# src/${PROJECT_NAME}/foo.cpp # src/${PROJECT_NAME}/foo.cpp
# ) # )
add_library(${PROJECT_NAME} src/iri_base_driver.cpp) add_library(${PROJECT_NAME} src/iri_base_driver.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) target_link_libraries(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES}) ${catkin_LIBRARIES}
${Boost_LIBRARIES}
)
## Declare a cpp executable ## Declare a cpp executable
# add_executable(foo_node src/foo_node.cpp) # add_executable(foo_node src/foo_node.cpp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment