-
Notifications
You must be signed in to change notification settings - Fork 0
/
zfp-config.cmake.in
31 lines (25 loc) · 988 Bytes
/
zfp-config.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# - Config file for the zfp package
#
# It defines the following variables
# ZFP_INCLUDE_DIRS - include directories for zfp
# ZFP_LIBRARIES - libraries to link against
# ZFP_WITH_OPENMP - indicates if the zfp library has been built with OpenMP support
# ZFP_WITH_CUDA - indicates if the zfp library has been built with CUDA support
#
# And the following imported targets:
# zfp::zfp
#
include("${CMAKE_CURRENT_LIST_DIR}/zfp-config-version.cmake")
include(FindPackageHandleStandardArgs)
set(${CMAKE_FIND_PACKAGE_NAME}_CONFIG "${CMAKE_CURRENT_LIST_FILE}")
find_package_handle_standard_args(${CMAKE_FIND_PACKAGE_NAME} CONFIG_MODE)
if(NOT TARGET zfp::zfp)
include("${CMAKE_CURRENT_LIST_DIR}/zfp-targets.cmake")
endif()
set(ZFP_LIBRARIES zfp::zfp)
get_target_property(ZFP_INCLUDE_DIRS zfp::zfp INTERFACE_INCLUDE_DIRECTORIES)
set(ZFP_WITH_OPENMP @ZFP_WITH_OPENMP@)
if(ZFP_WITH_OPENMP)
find_package(OpenMP REQUIRED COMPONENTS C)
endif()
set(ZFP_WITH_CUDA @ZFP_WITH_CUDA@)