Skip to content

Commit

Permalink
removed qt and vtk deps from package xml. fixed lvr2config.cmake.in t…
Browse files Browse the repository at this point in the history
…o work for both cases: beeing compiled inside a ROS workspace and outside
  • Loading branch information
amock committed Jan 18, 2024
1 parent ed53c83 commit e93644c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include(GNUInstallDirs)



set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
Expand Down Expand Up @@ -486,12 +488,9 @@ endif()
###############################################################################
# HEADERS
###############################################################################

install(DIRECTORY include/lvr2 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR})



###############################################################################
# VTK use file include. Has to be called after all CUDA code
# was generated and compiled. The VTK definitions corrupt the
Expand Down Expand Up @@ -652,7 +651,7 @@ endif()

include(CMakePackageConfigHelpers)
set(INCLUDE_INSTALL_DIR include/)
set(LIB_INSTALL_DIR lib/)
set(LIB_INSTALL_DIR lib)
set(SYSCONFIG_INSTALL_DIR etc/lvr2/)

install(EXPORT lvr2Targets
Expand Down Expand Up @@ -712,3 +711,5 @@ if( DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND )
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM )
endif( DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND )


8 changes: 6 additions & 2 deletions LVR2Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ set(LVR2_DEFINITIONS @LVR2_DEFINITIONS@)

find_package(PkgConfig REQUIRED)

set(LVR2_LIB_DIR @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@)

option(LVR2_USE_STATIC_LIBS OFF)
if(LVR2_USE_STATIC_LIBS)
find_library(LVR2_LIBRARY NAMES lvr2_static)
# find_library(LVR2_LIBRARY NAMES lvr2_static)
set(LVR2_LIBRARY ${LVR2_LIB_DIR}/liblvr2_static.so)
set(LVR2_LIBRARIES ${LVR2_LIBRARY})
else()
find_library(LVR2_LIBRARY NAMES lvr2)
# find_library(LVR2_LIBRARY NAMES lvr2)
set(LVR2_LIBRARY ${LVR2_LIB_DIR}/liblvr2.so)
set(LVR2_LIBRARIES ${LVR2_LIBRARY})
endif()

Expand Down
4 changes: 0 additions & 4 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ The Las Vegas Surface Reconstruction Toolkit is an Open Source toolkit to recons
<depend>libgdal-dev</depend>
<depend>eigen</depend>
<depend>ocl-icd-opencl-dev</depend>
<depend>libvtk</depend>
<depend>libvtk-qt</depend>
<depend>boost</depend>
<depend>glut</depend>
<depend>libxi-dev</depend>
<depend>libxmu-dev</depend>
<depend>libhdf5-dev</depend>
<depend>qtbase5-dev</depend>
<depend>libqt5-opengl-dev</depend>
<depend>lz4</depend>
<depend>libopencv-dev</depend>
<depend>yaml-cpp</depend>
Expand Down

0 comments on commit e93644c

Please sign in to comment.