File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 62
62
## Usage
63
63
Include the following in your ` CMakeLists.txt ` file
64
64
``` CMake
65
+ find_package(Qt5Core)
66
+ find_package(Qt5NetWork)
67
+ find_package(Qt5WebSockets)
68
+ find_package(Qt5Mqtt)
65
69
find_package(Qt5AwsIoT)
66
70
67
71
target_link_libraries(<target> Qt5::AwsIoT)
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ target_include_directories(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRE
48
48
# Create config file
49
49
configure_package_config_file (cmake/config.cmake.in
50
50
${CMAKE_BINARY_DIR} /${CMAKE_CONFIG_FILE_BASE_NAME}Config.cmake
51
- INSTALL_DESTINATION ${CMAKE_BINARY_DIR }
51
+ INSTALL_DESTINATION ${CMAKE_INSTALL_DIR }
52
52
PATH_VARS INCLUDE_INSTALL_DIR
53
53
)
54
54
Original file line number Diff line number Diff line change 11
11
12
12
include ("${CMAKE_CURRENT_LIST_DIR} /@CMAKE_CONFIG_FILE_BASE_NAME@Targets.cmake" )
13
13
14
- # find_package will silently look for the dependencies and set the correct
15
- # include directories and link libraries
16
- find_package (Qt@QT_MAJOR_VERSION_REQUIRED@Core QUIET )
17
- find_package (Qt@QT_MAJOR_VERSION_REQUIRED@NetWork QUIET )
18
- find_package (Qt@QT_MAJOR_VERSION_REQUIRED@WebSockets QUIET )
19
- find_package (Qt@QT_MAJOR_VERSION_REQUIRED@Mqtt QUIET )
20
-
21
14
check_required_components (Qt@QT_MAJOR_VERSION_REQUIRED@Core
22
15
Qt@QT_MAJOR_VERSION_REQUIRED@Network
23
16
Qt@QT_MAJOR_VERSION_REQUIRED@WebSockets
You can’t perform that action at this time.
0 commit comments