forked from OctoMap/octomap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
small cleanup of CMakeLists into submodules
- Loading branch information
Armin Hornung
committed
Jul 22, 2011
1 parent
de37357
commit 8e6781a
Showing
6 changed files
with
59 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Package building stuff - Experimental! | ||
SET(CPACK_PACKAGE_VERSION "${OCTOMAP_MAJOR_VERSION}.${OCTOMAP_MINOR_VERSION}.${OCTOMAP_PATCH_VERSION}") | ||
SET(CPACK_PACKAGE_VERSION_MAJOR "${OCTOMAP_MAJOR_VERSION}") | ||
SET(CPACK_PACKAGE_VERSION_MINOR "${OCTOMAP_MINOR_VERSION}") | ||
SET(CPACK_PACKAGE_VERSION_PATCH "${OCTOMAP_PATCH_VERSION}") | ||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${V_MAJOR}.${V_MINOR}") | ||
SET(CPACK_PACKAGE_CONTACT "K.M. Wurm and A. Hornung") | ||
SET(CPACK_PACKAGE_VENDOR "University of Freiburg") | ||
SET(CPACK_GENERATOR "DEB") | ||
SET(CPACK_SOURCE_GENERATOR "TGZ") | ||
|
||
|
||
include(CMakeModules/InstallPkgConfigFile.cmake) | ||
install_pkg_config_file(octomap | ||
CFLAGS | ||
LIBS -loctomap -loctomath | ||
REQUIRES | ||
VERSION ${OCTOMAP_MAJOR_VERSION}.${OCTOMAP_MINOR_VERSION}.${OCTOMAP_PATCH_VERSION}) | ||
|
||
# This must always be last statement! | ||
INCLUDE(CPack) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# COMPILER SETTINGS (default: Release) | ||
# use "-DCMAKE_BUILD_TYPE=Debug" in cmake for a Debug-build | ||
IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) | ||
SET(CMAKE_BUILD_TYPE Release) | ||
ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) | ||
|
||
# COMPILER FLAGS | ||
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-error ") | ||
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-error ") | ||
SET (CMAKE_CXX_FLAGS_RELEASE "-O3 -funroll-loops -DNDEBUG -O3 -msse3 -mssse3") | ||
SET (CMAKE_CXX_FLAGS_DEBUG "-O0 -g") | ||
|
||
MESSAGE ("\n") | ||
MESSAGE (STATUS "Building as ${CMAKE_BUILD_TYPE}") | ||
MESSAGE ("\n") | ||
|
||
# Shared object compilation under 64bit (vtable) | ||
ADD_DEFINITIONS(-fPIC) | ||
|
||
# Set full rpath http://www.paraview.org/Wiki/CMake_RPATH_handling | ||
# (good to have and required with ROS) | ||
set(CMAKE_SKIP_BUILD_RPATH FALSE) | ||
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) | ||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") | ||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
|
||
# no prefix needed for python modules | ||
set(CMAKE_SHARED_MODULE_PREFIX "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters