Skip to content

Commit 850c0a7

Browse files
Merge pull request #28 from KurtPattyn/develop
v1.0.3
2 parents 79cb203 + 8d05c25 commit 850c0a7

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ make
6262
## Usage
6363
Include the following in your `CMakeLists.txt` file
6464
```CMake
65+
find_package(Qt5Core)
66+
find_package(Qt5NetWork)
67+
find_package(Qt5WebSockets)
68+
find_package(Qt5Mqtt)
6569
find_package(Qt5AwsIoT)
6670
6771
target_link_libraries(<target> Qt5::AwsIoT)

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ target_include_directories(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRE
4848
# Create config file
4949
configure_package_config_file(cmake/config.cmake.in
5050
${CMAKE_BINARY_DIR}/${CMAKE_CONFIG_FILE_BASE_NAME}Config.cmake
51-
INSTALL_DESTINATION ${CMAKE_BINARY_DIR}
51+
INSTALL_DESTINATION ${CMAKE_INSTALL_DIR}
5252
PATH_VARS INCLUDE_INSTALL_DIR
5353
)
5454

src/cmake/config.cmake.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111

1212
include("${CMAKE_CURRENT_LIST_DIR}/@CMAKE_CONFIG_FILE_BASE_NAME@Targets.cmake")
1313

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-
2114
check_required_components(Qt@QT_MAJOR_VERSION_REQUIRED@Core
2215
Qt@QT_MAJOR_VERSION_REQUIRED@Network
2316
Qt@QT_MAJOR_VERSION_REQUIRED@WebSockets

0 commit comments

Comments
 (0)