Skip to content

Commit

Permalink
syncing trunk to pcl-1.x and pcl-1.1.x ( /, cmake/, apps)
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.pointclouds.org/pcl/branches/pcl-1.1.x@2318 a9d63959-f2ad-4865-b262-bf0e56cfafb6
  • Loading branch information
jspricke committed Aug 30, 2011
1 parent 2fd91b0 commit 8fa3866
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
project(PCL)
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)


set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
"${CMAKE_SOURCE_DIR}/cmake/Modules/")

Expand Down Expand Up @@ -39,7 +40,7 @@ else(UNIX OR APPLE)
endif(MSVC)
endif()
if (__COMPILER_PATHSCALE)
add_definitions("-Wno-uninitialized -zerouv -pthread")
add_definitions("-Wno-uninitialized -zerouv -pthread -mp")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_definitions("-std=gnu++0x")
Expand Down Expand Up @@ -123,6 +124,7 @@ include(${PCL_SOURCE_DIR}/cmake/pcl_find_ros.cmake)
find_package(VTK)
if(VTK_FOUND)
message(STATUS "VTK found (include: ${VTK_INCLUDE_DIRS}, lib: ${VTK_LIBRARY_DIRS})")
link_directories(${VTK_LIBRARY_DIRS})
set(HAVE_VTK ON)
endif()
# Find wxWidgets
Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Software License Agreement (BSD License)

Point Cloud Library (PCL) - www.pointclouds.org
Copyright (c) 2009-2011, Willow Garage, Inc.
Copyright (c) XXX, respective authors.

Expand Down
1 change: 1 addition & 0 deletions apps/src/openni_3d_concave_hull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <pcl/surface/concave_hull.h>
#include <pcl/console/parse.h>
#include <pcl/common/time.h>
#include <pcl/visualization/cloud_viewer.h>

using namespace pcl;
using namespace pcl::visualization;
Expand Down
2 changes: 1 addition & 1 deletion apps/src/openni_ii_normal_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include <pcl/point_types.h>
#include <pcl/io/openni_grabber.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/io/openni_camera/openni_driver.h>
#include <pcl/features/integral_image_normal.h>
#include <pcl/console/parse.h>
#include <pcl/common/time.h>
#include <pcl/visualization/cloud_viewer.h>

#define FPS_CALC(_WHAT_) \
do \
Expand Down
4 changes: 1 addition & 3 deletions apps/src/openni_voxel_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ usage (char ** argv)
int
main (int argc, char ** argv)
{
bool help = false;
pcl::console::parse_argument (argc, argv, "-h", help);
if (help)
if (pcl::console::find_argument (argc, argv, "-h"))
{
usage (argv);
return (1);
Expand Down
8 changes: 6 additions & 2 deletions cmake/pcl_targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ macro(PCL_ADD_LIBRARY _name _component)
set_target_properties(${_name} PROPERTIES LINK_FLAGS_RELEASE /OPT:REF)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set_target_properties(${_name} PROPERTIES LINK_FLAGS -Wl)
elseif(__COMPILER_PATHSCALE)
set_target_properties(${_name} PROPERTIES LINK_FLAGS -mp)
else()
set_target_properties(${_name} PROPERTIES LINK_FLAGS -Wl,--as-needed)
endif()
Expand Down Expand Up @@ -109,9 +111,9 @@ endmacro(PCL_ADD_LIBRARY)
macro(PCL_CUDA_ADD_LIBRARY _name _component)
if(PCL_SHARED_LIBS)
# to overcome a limitation in cuda_add_library, we add manually PCLAPI_EXPORTS macro
cuda_add_library(${_name} ${PCL_LIB_TYPE} ${ARGN} OPTIONS -arch sm_20 -DPCLAPI_EXPORTS)
cuda_add_library(${_name} ${PCL_LIB_TYPE} ${ARGN} OPTIONS -DPCLAPI_EXPORTS)
else(PCL_SHARED_LIBS)
cuda_add_library(${_name} ${PCL_LIB_TYPE} ${ARGN} OPTIONS -arch sm_20)
cuda_add_library(${_name} ${PCL_LIB_TYPE} ${ARGN})
endif(PCL_SHARED_LIBS)

# must link explicitly against boost.
Expand Down Expand Up @@ -161,6 +163,8 @@ macro(PCL_ADD_EXECUTABLE _name _component)
set_target_properties(${_name} PROPERTIES LINK_FLAGS_RELEASE /OPT:REF DEBUG_OUTPUT_NAME ${_name}${CMAKE_DEBUG_POSTFIX})
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set_target_properties(${_name} PROPERTIES LINK_FLAGS -Wl)
elseif(__COMPILER_PATHSCALE)
set_target_properties(${_name} PROPERTIES LINK_FLAGS -mp)
else()
set_target_properties(${_name} PROPERTIES LINK_FLAGS -Wl,--as-needed)
endif()
Expand Down

0 comments on commit 8fa3866

Please sign in to comment.