Skip to content

Commit

Permalink
Change to proper cmake export files
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Feb 17, 2024
1 parent e5e7972 commit 55ce06a
Show file tree
Hide file tree
Showing 23 changed files with 147 additions and 404 deletions.
3 changes: 3 additions & 0 deletions 2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ set(impl_incs
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")

set(LIB_NAME "pcl_${SUBSYS_NAME}")

PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME})

PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS} HEADER_ONLY)

#Install include files
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ if(WIN32)
set(PCL_POINTCLOUDS_DIR "${PCL_RESOURCES_DIR}/pointclouds")
endif()

#Set up output directory for builds
set(PCL_OUTPUT_LIB_DIR "${PCL_BINARY_DIR}/${LIB_INSTALL_DIR}")
set(PCL_OUTPUT_BIN_DIR "${PCL_BINARY_DIR}/${BIN_INSTALL_DIR}")
make_directory("${PCL_OUTPUT_LIB_DIR}")
Expand Down Expand Up @@ -274,6 +275,7 @@ if(CMAKE_GENERATOR_IS_IDE)
else()
set(UNINSTALL_TARGET_NAME uninstall)
endif()

configure_file("${PCL_SOURCE_DIR}/cmake/uninstall_target.cmake.in"
"${PCL_BINARY_DIR}/uninstall_target.cmake" IMMEDIATE @ONLY)
add_custom_target(${UNINSTALL_TARGET_NAME} "${CMAKE_COMMAND}" -P
Expand Down
Loading

0 comments on commit 55ce06a

Please sign in to comment.