Skip to content

Commit

Permalink
Merge pull request #28 from KurtPattyn/develop
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
frederikvannoote authored Aug 27, 2018
2 parents 79cb203 + 8d05c25 commit 850c0a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ make
## Usage
Include the following in your `CMakeLists.txt` file
```CMake
find_package(Qt5Core)
find_package(Qt5NetWork)
find_package(Qt5WebSockets)
find_package(Qt5Mqtt)
find_package(Qt5AwsIoT)
target_link_libraries(<target> Qt5::AwsIoT)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ target_include_directories(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRE
# Create config file
configure_package_config_file(cmake/config.cmake.in
${CMAKE_BINARY_DIR}/${CMAKE_CONFIG_FILE_BASE_NAME}Config.cmake
INSTALL_DESTINATION ${CMAKE_BINARY_DIR}
INSTALL_DESTINATION ${CMAKE_INSTALL_DIR}
PATH_VARS INCLUDE_INSTALL_DIR
)

Expand Down
7 changes: 0 additions & 7 deletions src/cmake/config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@

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

# find_package will silently look for the dependencies and set the correct
# include directories and link libraries
find_package(Qt@QT_MAJOR_VERSION_REQUIRED@Core QUIET)
find_package(Qt@QT_MAJOR_VERSION_REQUIRED@NetWork QUIET)
find_package(Qt@QT_MAJOR_VERSION_REQUIRED@WebSockets QUIET)
find_package(Qt@QT_MAJOR_VERSION_REQUIRED@Mqtt QUIET)

check_required_components(Qt@QT_MAJOR_VERSION_REQUIRED@Core
Qt@QT_MAJOR_VERSION_REQUIRED@Network
Qt@QT_MAJOR_VERSION_REQUIRED@WebSockets
Expand Down

0 comments on commit 850c0a7

Please sign in to comment.