Das Problem mit der Erreichbarkeit der HS-Koblenz ist behoben. Es können sich wieder alle anmelden.

Commit 9ee25ddb authored by Patrik Schmidt's avatar Patrik Schmidt 🤖
Browse files

Add stub executables to cmake project

parent a07bae5d
cmake_minimum_required(VERSION 2.8)
project(PCL)
SET(CMAKE_BUILD_TYPES Debug;Release)
SET(CMAKE_CXX_STANDARD 14)
SET(RESOURCES_PATH ${CMAKE_SOURCE_DIR}/../resources CACHE PATH "Project specified path.")
find_package(PCL 1.7 REQUIRED)
add_subdirectory(io)
add_subdirectory(visualization)
add_subdirectory(filtering)
add_subdirectory(segmentation)
\ No newline at end of file
cmake_minimum_required(VERSION 2.8)
project(pcl_filtering)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINTIONS})
set(CMAKE_CXX_STANDARD 14)
add_executable(pcl_filtering main.cpp)
target_link_libraries(pcl_filtering ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_VISUALIZATION_LIBRARIES})
#target_link_libraries(pcl_tutorial ${PCL_LIBRARIES})
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/visualization/cloud_viewer.h>
int
main (int argc, char** argv)
{
//Filtering
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
pcl::io::loadPCDFile ("../../room_scan1.pcd", *cloud);
pcl::visualization::CloudViewer viewer ("Demo Viewer");
viewer.showCloud(cloud);
while(!viewer.wasStopped()){
}
return (0);
}
\ No newline at end of file
cmake_minimum_required(VERSION 3.12)
project(pcl_tutorial)
find_package(PCL REQUIRED)
cmake_minimum_required(VERSION 2.8)
project(pcl_io)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINTIONS})
set(CMAKE_CXX_STANDARD 14)
add_executable(pcl_tutorial main.cpp)
#target_link_libraries(pcl_tutorial ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES})
target_link_libraries(pcl_tutorial ${PCL_LIBRARIES})
add_executable(pcl_io main.cpp)
target_link_libraries(pcl_io ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES})
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/visualization/cloud_viewer.h>
int
main (int argc, char** argv)
{
//Filtering
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
pcl::io::loadPCDFile ("../../room_scan1.pcd", *cloud);
pcl::visualization::CloudViewer viewer ("Demo Viewer");
viewer.showCloud(cloud);
while(!viewer.wasStopped()){
}
return (0);
}
\ No newline at end of file
cmake_minimum_required(VERSION 2.8)
project(pcl_segmentation)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINTIONS})
set(CMAKE_CXX_STANDARD 14)
add_executable(pcl_segmentation main.cpp)
target_link_libraries(pcl_io ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES})
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/visualization/cloud_viewer.h>
int
main (int argc, char** argv)
{
//Filtering
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
pcl::io::loadPCDFile ("../../room_scan1.pcd", *cloud);
pcl::visualization::CloudViewer viewer ("Demo Viewer");
viewer.showCloud(cloud);
while(!viewer.wasStopped()){
}
return (0);
}
\ No newline at end of file
cmake_minimum_required(VERSION 2.8)
project(pcl_viz)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINTIONS})
add_definitions(-DRESOURCES_PATH="${RESOURCES_PATH}")
set(CMAKE_CXX_STANDARD 14)
add_executable(pcl_viz main.cpp)
target_link_libraries(pcl_viz ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_VISUALIZATION_LIBRARIES})
#target_link_libraries(pcl_tutorial ${PCL_LIBRARIES})
......@@ -7,7 +7,7 @@ int
main (int argc, char** argv)
{
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
pcl::io::loadPCDFile ("../room_scan1.pcd", *cloud);
pcl::io::loadPCDFile (RESOURCES_PATH "/room_scan1.pcd", *cloud);
pcl::visualization::CloudViewer viewer ("Demo Viewer");
viewer.showCloud(cloud);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment