Skip to content

Commit

Permalink
Introduced catkin simple again
Browse files Browse the repository at this point in the history
  • Loading branch information
eggerk committed Jun 29, 2018
1 parent 83a74eb commit e2c74a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 2.8.3)
project(glog_catkin)

find_package(catkin REQUIRED COMPONENTS gflags_catkin)
find_package(catkin_simple REQUIRED)
catkin_simple()

include(ExternalProject)

Expand All @@ -19,12 +20,11 @@ ExternalProject_Add(glog_src
INSTALL_COMMAND cd ../glog_src/ && make install -j 8
)

include_directories(include ${CATKIN_DEVEL_PREFIX}/include ${catkin_INCLUDE_DIRS})
catkin_package(
INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include ${catkin_INCLUDE_DIRS}
LIBRARIES glog)
install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/include/glog DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/include/glog
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")
install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/lib/
DESTINATION ${CATKIN_GLOBAL_LIB_DESTINATION}
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
FILES_MATCHING PATTERN "libglog*")
cs_export(INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include
LIBRARIES glog)
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<license>See package</license>

<buildtool_depend>catkin</buildtool_depend>
<buildtool_depend>catkin_simple</buildtool_depend>

<depend>gflags_catkin</depend>
</package>

0 comments on commit e2c74a8

Please sign in to comment.