-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleConfigUse.cmake.in
More file actions
56 lines (46 loc) · 1.76 KB
/
ModuleConfigUse.cmake.in
File metadata and controls
56 lines (46 loc) · 1.76 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
##############################################################################
# @file @USE_FILE@
# @brief CMake package configuration use file.
#
# @note The @USE_FILE@ file is automatically generated
# by BASIS from the template file ModuleConfigUse.cmake.in which is part
# of the BASIS installation.
#
# @ingroup BasisConfig
##############################################################################
# ============================================================================
# namespace
# ============================================================================
@BASIS_NS@
# ============================================================================
# include guard
# ============================================================================
if (__${NS}USE_FILE_INCLUDED)
return ()
else ()
set (__${NS}USE_FILE_INCLUDED 1)
endif ()
# ============================================================================
# use project settings
# ============================================================================
# include directories
if (${NS}INCLUDE_DIRS)
include_directories (${${NS}INCLUDE_DIRS})
elseif (${NS}INCLUDE_DIR)
include_directories (${${NS}INCLUDE_DIR})
endif ()
# library directories
if (${NS}LIBRARY_DIRS)
link_directories (${${NS}LIBRARY_DIRS})
elseif (${NS}LIBRARY_DIR)
link_directories (${${NS}LIBRARY_DIR})
endif ()
# ============================================================================
# import build targets
# ============================================================================
## @brief Whether to import the exported targets.
set (NO_${NS}IMPORTS "${NO_${NS}IMPORTS}")
if (NOT NO_${NS}IMPORTS)
include ("${${NS}EXPORTS_FILE}" OPTIONAL)
include ("${${NS}CUSTOM_EXPORTS_FILE}" OPTIONAL)
endif ()