Skip to content

Commit

Permalink
CMake: Udpcap now installs a udpcapConfigVersion.cmake file (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold authored May 13, 2024
1 parent a381b68 commit 501053e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion udpcap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,16 @@ configure_package_config_file(
INSTALL_DESTINATION ${UDPCAP_INSTALL_CMAKE_DIR}
PATH_VARS UDPCAP_INSTALL_CMAKE_DIR
)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/cmake_/udpcapConfigVersion.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)

install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake_/udpcapConfig.cmake"
FILES
"${CMAKE_CURRENT_BINARY_DIR}/cmake_/udpcapConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_/udpcapConfigVersion.cmake"
DESTINATION ${UDPCAP_INSTALL_CMAKE_DIR}
COMPONENT udpcap_dev
)
Expand Down

0 comments on commit 501053e

Please sign in to comment.