-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGenerateLSQRRecipesConfig.cmake
More file actions
executable file
·28 lines (23 loc) · 1.05 KB
/
GenerateLSQRRecipesConfig.cmake
File metadata and controls
executable file
·28 lines (23 loc) · 1.05 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
#
# Generate the LSQRRecipesConfig.cmake file for the build tree and installation.
#
################################################################################
#
# Build tree.
#
set(LSQRRecipes_USE_FILE ${LSQRRecipes_BINARY_DIR}/UseLSQRRecipes.cmake)
set(LSQRRecipes_LIBRARY_DIRS_CONFIG ${LSQRRecipes_BINARY_DIR})
set(LSQRRecipes_INCLUDE_DIRS_CONFIG ${LSQRRecipes_INCLUDE_DIRS})
configure_file(${LSQRRecipes_SOURCE_DIR}/LSQRRecipesConfig.cmake.in
${LSQRRecipes_BINARY_DIR}/LSQRRecipesConfig.cmake @ONLY)
################################################################################
#
# Install tree.
#
set(LSQRRecipes_USE_FILE ${LSQRRecipes_INSTALL_LIB_DIR}/UseLSQRRecipes.cmake)
set(LSQRRecipes_LIBRARY_DIRS_CONFIG ${LSQRRecipes_INSTALL_LIB_DIR})
set(LSQRRecipes_INCLUDE_DIRS_CONFIG ${LSQRRecipes_INSTALL_INCLUDE_DIR})
#place the LSQRRecipesConfig.cmake for the installation version in a temporary
#location
configure_file(${LSQRRecipes_SOURCE_DIR}/LSQRRecipesConfig.cmake.in
${PRE_INSTALL_DIR}/LSQRRecipesConfig.cmake @ONLY)