| 1 |
# Generate the KWStyleConfig.cmake file in the build tree. Also configure |
| 2 |
# one for installation. The file tells external projects how to use |
| 3 |
# KWStyle. |
| 4 |
|
| 5 |
|
| 6 |
#----------------------------------------------------------------------------- |
| 7 |
# Settings specific to the build tree. |
| 8 |
|
| 9 |
|
| 10 |
# The "use" file. |
| 11 |
set(KWStyle_USE_FILE_CONFIG |
| 12 |
${CMAKE_CURRENT_SOURCE_DIR}/UseKWStyle.cmake) |
| 13 |
|
| 14 |
# The build settings file. |
| 15 |
set(KWStyle_BUILD_SETTINGS_FILE_CONFIG |
| 16 |
${KWStyle_BINARY_DIR}/KWStyleBuildSettings.cmake) |
| 17 |
|
| 18 |
# The library directories. |
| 19 |
set(KWStyle_LIBRARY_DIRS ${KWStyle_LIBRARY_DIRS}) |
| 20 |
|
| 21 |
# The EXECUTABLE directories. |
| 22 |
set(KWStyle_EXECUTABLE_DIRS ${KWStyle_EXECUTABLE_DIRS}) |
| 23 |
|
| 24 |
# The include directories. |
| 25 |
set(KWStyle_INCLUDE_DIRS_CONFIG ${KWStyle_INCLUDE_PATH}) |
| 26 |
|
| 27 |
# The library dependencies file. |
| 28 |
set(KWStyle_LIBRARY_DEPENDS_FILE |
| 29 |
${KWStyle_BINARY_DIR}/KWStyleLibraryDepends.cmake) |
| 30 |
|
| 31 |
# The CMake macros dir. |
| 32 |
set(KWStyle_CMAKE_DIR_CONFIG |
| 33 |
${KWStyle_CMAKE_DIR}) |
| 34 |
|
| 35 |
# The build configuration information. |
| 36 |
set(KWStyle_CONFIGURATION_TYPES_CONFIG ${KWStyle_CONFIGURATION_TYPES}) |
| 37 |
set(KWStyle_BUILD_TYPE_CONFIG ${CMAKE_BUILD_TYPE}) |
| 38 |
|
| 39 |
# Configure KWStyleConfig.cmake for the build tree. |
| 40 |
configure_file( |
| 41 |
${CMAKE_CURRENT_SOURCE_DIR}/KWStyleConfig.cmake.in |
| 42 |
${KWStyle_BINARY_DIR}/KWStyleConfig.cmake @ONLY IMMEDIATE) |