-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: improved udpcapConfig-XXX.cmake with find_dependency (#6)
- Replaced find_package with find_dependency call that is designed to be used in Package configuration files - Replaced configured install-dir with a lookup in the CURRENT_LIST_DIR
- Loading branch information
1 parent
4175ecf
commit a462630
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@PACKAGE_INIT@ | ||
|
||
INCLUDE("@PACKAGE_UDPCAP_INSTALL_CMAKE_DIR@/udpcapTargets.cmake") | ||
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/udpcapTargets.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
@PACKAGE_INIT@ | ||
|
||
INCLUDE("@PACKAGE_UDPCAP_INSTALL_CMAKE_DIR@/udpcapTargets.cmake") | ||
include(CMakeFindDependencyMacro) | ||
find_dependency(npcap) | ||
find_dependency(pcapplusplus) | ||
|
||
find_package(npcap REQUIRED) | ||
find_package(pcapplusplus REQUIRED) | ||
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/udpcapTargets.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
set(UDPCAP_VERSION_MAJOR 1) | ||
set(UDPCAP_VERSION_MINOR 0) | ||
set(UDPCAP_VERSION_PATCH 1) | ||
set(UDPCAP_VERSION_PATCH 2) |