Skip to content

Commit

Permalink
refactor-remove-export-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Aug 19, 2023
1 parent 01af97b commit bf8e073
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
23 changes: 0 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ set(PANGOLIN_VERSION ${PANGOLIN_VERSION_MAJOR}.${PANGOLIN_VERSION_MINOR})


find_package(Eigen3 3.4.0 REQUIRED)
find_package(farm_ng_core 0.1.0 REQUIRED)
find_package(Sophus REQUIRED)

# Prevent in source builds
if(EXISTS "${PROJECT_BINARY_DIR}/CMakeLists.txt")
Expand Down Expand Up @@ -127,9 +125,6 @@ endforeach()
#######################################################
## Build Tree Export

# Export Targets
export(TARGETS ${component_list} FILE PangolinTargets.cmake)
export(PACKAGE Pangolin)

# Version information
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake.in
Expand All @@ -150,24 +145,6 @@ file( RELATIVE_PATH REL_INCLUDE_DIR
"${CMAKE_INSTALL_PREFIX}/include"
)

install(
TARGETS ${component_list}
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
install(
EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)

# uninstall target
if(NOT TARGET uninstall)
configure_file(
Expand Down
1 change: 0 additions & 1 deletion components/pango_context/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ if(BUILD_TESTS)
catch_discover_tests(layer_group_test)
endif()

find_package(Sophus REQUIRED)
target_link_libraries(${COMPONENT} PUBLIC pango_windowing pango_render pango_vars Sophus::sophus_image Sophus::sophus_sensor)
target_link_libraries(${COMPONENT} PUBLIC pango_opengl)

Expand Down
1 change: 0 additions & 1 deletion components/pango_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/include"
DESTINATION ${CMAKE_INSTALL_PREFIX}
)

find_package(Sophus REQUIRED)
target_link_libraries(${COMPONENT} PUBLIC Sophus::sophus third_party)

find_package(Threads QUIET)
Expand Down
1 change: 0 additions & 1 deletion components/pango_image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ get_filename_component(COMPONENT ${CMAKE_CURRENT_LIST_DIR} NAME)
find_package (Eigen3 REQUIRED QUIET)
target_compile_definitions(${COMPONENT} PUBLIC HAVE_EIGEN)

find_package(Sophus REQUIRED)
target_link_libraries(${COMPONENT} PUBLIC Sophus::sophus_image)

option(BUILD_PANGOLIN_LIBPNG "Build support for libpng image input" ON)
Expand Down
1 change: 0 additions & 1 deletion components/pango_render/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ foreach(basename ${component_file_basenames})
endif()
endforeach()

find_package(Sophus REQUIRED)
target_link_libraries(${COMPONENT} PUBLIC pango_core Sophus::sophus_image Sophus::sophus_sensor)

target_include_directories(${COMPONENT} PUBLIC
Expand Down

0 comments on commit bf8e073

Please sign in to comment.