-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUILD: Help cmake to find UCC on system (#255)
- Loading branch information
Showing
6 changed files
with
66 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -7,7 +7,8 @@ | |
if !DOCS_ONLY | ||
SUBDIRS = \ | ||
src \ | ||
tools/info | ||
tools/info \ | ||
cmake | ||
|
||
if HAVE_MPICXX | ||
SUBDIRS += \ | ||
|
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,11 @@ | ||
# | ||
# Copyright (C) NVIDIA Corporation. 2021. ALL RIGHTS RESERVED. | ||
# | ||
|
||
cmakedir = $(libdir)/cmake/ucc | ||
cmake_DATA = \ | ||
ucc-targets.cmake \ | ||
ucc-config.cmake \ | ||
ucc-config-version.cmake | ||
|
||
EXTRA_DIST = $(cmake_DATA) |
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,31 @@ | ||
# | ||
# Copyright (C) NVIDIA Corporation. 2021. ALL RIGHTS RESERVED. | ||
# | ||
|
||
# This is a basic version file for the Config-mode of find_package(). | ||
# | ||
# This file sets PACKAGE_VERSION_EXACT if the current version string and | ||
# the requested version string are exactly the same and it sets | ||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. | ||
|
||
set(PACKAGE_VERSION @VERSION@) | ||
|
||
if (PACKAGE_FIND_VERSION_RANGE) | ||
# Package version must be in the requested version range | ||
if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN) | ||
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX) | ||
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX)) | ||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
else() | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
endif() | ||
else() | ||
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) | ||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
else() | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (C) NVIDIA Corporation. 2021. ALL RIGHTS RESERVED. | ||
# | ||
|
||
set(UCC_LIBRARIES "@prefix@/lib") | ||
set(UCC_INCLUDE_DIRS "@prefix@/include") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/ucc-targets.cmake") |
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,10 @@ | ||
# | ||
# Copyright (C) NVIDIA Corporation. 2021. ALL RIGHTS RESERVED. | ||
# | ||
|
||
add_library(ucc::ucc SHARED IMPORTED) | ||
|
||
set_target_properties(ucc::ucc PROPERTIES | ||
IMPORTED_LOCATION "@prefix@/lib/libucc.so" | ||
INTERFACE_INCLUDE_DIRECTORIES "@prefix@/include" | ||
) |
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