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 18, 2023
1 parent 01af97b commit 6c9061c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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
Expand Down Expand Up @@ -127,9 +126,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 +146,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

0 comments on commit 6c9061c

Please sign in to comment.