-
-
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.
- Loading branch information
Showing
8 changed files
with
119 additions
and
25 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
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
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
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
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,17 @@ | ||
find_path(Libuuid_INCLUDE_DIRS uuid/uuid.h) | ||
find_library(Libuuid_LIBRARIES uuid) | ||
|
||
if(Libuuid_LIBRARIES AND Libuuid_INCLUDE_DIRS) | ||
set(Libuuid_FOUND YES) | ||
if(NOT Libuuid_FIND_QUIETLY) | ||
message(STATUS "Found libuuid: ${Libuuid_LIBRARIES}") | ||
endif() | ||
else() | ||
if(Libuuid_FIND_REQUIRED) | ||
message(SEND_ERROR "Could NOT find libuuid") | ||
else() | ||
if(NOT Libuuid_FIND_QUIETLY) | ||
message(STATUS "Could NOT find libuuid") | ||
endif() | ||
endif() | ||
endif() |
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,24 +1,40 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/libnickTargets.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") | ||
include(CMakeFindDependencyMacro) | ||
|
||
if(DEFINED ENV{VCPKG_ROOT}) | ||
file(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT) | ||
if(EXISTS "${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") | ||
set(USING_VCPKG ON) | ||
endif() | ||
endif() | ||
|
||
find_dependency(Boost REQUIRED COMPONENTS locale) | ||
find_dependency(CURL REQUIRED) | ||
find_dependency(jsoncpp REQUIRED) | ||
find_dependency(jsoncpp CONFIG REQUIRED) | ||
find_dependency(Intl REQUIRED) | ||
find_dependency(OpenSSL REQUIRED) | ||
find_dependency(unofficial-maddy REQUIRED) | ||
if(USING_VCPKG) | ||
find_dependency(unofficial-maddy REQUIRED) | ||
else() | ||
find_dependency(maddy REQUIRED) | ||
endif() | ||
if(LINUX) | ||
find_dependency(Threads REQUIRED) | ||
find_dependency(PkgConfig REQUIRED) | ||
pkg_check_modules(glib REQUIRED IMPORTED_TARGET glib-2.0) | ||
pkg_check_modules(gio REQUIRED IMPORTED_TARGET gio-2.0) | ||
pkg_check_modules(gmodule REQUIRED IMPORTED_TARGET gmodule-2.0) | ||
pkg_check_modules(gobject REQUIRED IMPORTED_TARGET gobject-2.0) | ||
pkg_check_modules(gthread REQUIRED IMPORTED_TARGET gthread-2.0) | ||
pkg_check_modules(libsecret REQUIRED IMPORTED_TARGET libsecret-1) | ||
find_dependency(unofficial-libuuid CONFIG REQUIRED) | ||
find_dependency(Threads REQUIRED) | ||
find_dependency(PkgConfig REQUIRED) | ||
pkg_check_modules(glib REQUIRED IMPORTED_TARGET glib-2.0) | ||
pkg_check_modules(gio REQUIRED IMPORTED_TARGET gio-2.0) | ||
pkg_check_modules(gmodule REQUIRED IMPORTED_TARGET gmodule-2.0) | ||
pkg_check_modules(gobject REQUIRED IMPORTED_TARGET gobject-2.0) | ||
pkg_check_modules(gthread REQUIRED IMPORTED_TARGET gthread-2.0) | ||
pkg_check_modules(libsecret REQUIRED IMPORTED_TARGET libsecret-1) | ||
if(USING_VCPKG) | ||
find_dependency(unofficial-libuuid CONFIG REQUIRED) | ||
else() | ||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) | ||
find_dependency(Libuuid REQUIRED) | ||
endif() | ||
endif() | ||
|
||
check_required_components(libnick) |
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
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