-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b32d619
commit 46e5b9c
Showing
2 changed files
with
259 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# - Find paho-mqtt | ||
# Find the paho-mqtt includes and library from vcpkg | ||
# It's temporary solution on Win, written issue: | ||
# https://github.com/Microsoft/vcpkg/issues/3175 | ||
# paho-mqtt_INCLUDE_DIR - Where to find paho-mqtt includes | ||
# paho-mqtt_LIBRARIES - List of libraries when using paho-mqtt | ||
# paho-mqtt_FOUND - True if paho-mqtt was found | ||
|
||
# To find and use catch | ||
find_path(paho-mqtt_INCLUDE_DIR MQTTAsync.h | ||
PATHS | ||
c:/devel/vcpkg/installed/x64-windows/include | ||
DOC "paho-mqtt - Headers" | ||
) | ||
|
||
include_directories(${paho-mqtt_INCLUDE_DIR}) | ||
|
||
SET(paho-mqtt_NAMES paho-mqtt3as.lib paho-mqtt3cs.lib) | ||
|
||
FIND_LIBRARY(paho-mqtt_LIBRARY NAMES ${paho-mqtt_NAMES} | ||
PATHS | ||
c:/devel/vcpkg/installed/x64-windows/lib | ||
PATH_SUFFIXES lib lib64 | ||
DOC "paho-mqtt - Library" | ||
) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
|
||
SET(paho-mqtt_LIBRARIES ${paho-mqtt_LIBRARY}) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(paho-mqtt DEFAULT_MSG paho-mqtt_LIBRARY paho-mqtt_INCLUDE_DIR) | ||
|
||
MARK_AS_ADVANCED(paho-mqtt_LIBRARY paho-mqtt_INCLUDE_DIR) | ||
|
||
IF(paho-mqtt_FOUND) | ||
SET(paho-mqtt_INCLUDE_DIRS ${paho-mqtt_INCLUDE_DIR}) | ||
ENDIF(paho-mqtt_FOUND) |
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