-
Notifications
You must be signed in to change notification settings - Fork 158
/
zfp-config.cmake.in
44 lines (38 loc) · 1.51 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
# - 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
# ZFP_CFP_ENABLED - indicated if the cfp library has been built
#
# And the following imported targets:
# zfp::zfp
#
# If cfp is enabled the following variabled are also defined
# CFP_INCLUDE_DIRS - include directories for cfp
# CFP_LIBRARIES - libraries to link against (cfp only)
#
# As well as the following imported targets:
# zfp::cfp
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")
set(ZFP_LIBRARIES "zfp::zfp")
get_target_property(ZFP_INCLUDE_DIRS zfp::zfp INTERFACE_INCLUDE_DIRECTORIES)
endif()
set(ZFP_CFP_ENABLED @BUILD_CFP@)
if(ZFP_CFP_ENABLED AND NOT TARGET zfp::cfp)
include("${CMAKE_CURRENT_LIST_DIR}/cfp-targets.cmake")
set(CFP_LIBRARIES "zfp::cfp")
get_target_property(CFP_INCLUDE_DIRS zfp::cfp INTERFACE_INCLUDE_DIRECTORIES)
endif()
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@)