| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | ## Generate the CTKConfig.cmake file in the build tree. Also configure# one for installation.  The file tells external projects how to use CTK.## Construct version numbers for CTKConfigVersion.cmake.SET(_CTK_VERSION_MAJOR ${CTK_MAJOR_VERSION})SET(_CTK_VERSION_MINOR ${CTK_MINOR_VERSION})SET(_CTK_VERSION_PATCH ${CTK_BUILD_VERSION})# We use odd minor numbers for development versions.# Use a date for the development patch level.# IF("${_CTK_VERSION_MINOR}" MATCHES "[13579]$")#   INCLUDE(${CTK_SOURCE_DIR}/Utilities/kwsys/kwsysDateStamp.cmake)#   SET(_CTK_VERSION_PATCH#     "${KWSYS_DATE_STAMP_YEAR}${KWSYS_DATE_STAMP_MONTH}${KWSYS_DATE_STAMP_DAY}"#     )# ENDIF()#-----------------------------------------------------------------------------# Settings shared between the build tree and install tree.#-----------------------------------------------------------------------------# Settings specific to the build tree.# The install-only section is empty for the build tree.SET(CTK_CONFIG_INSTALL_ONLY)# The "use" file.SET(CTK_USE_FILE ${CTK_SUPERBUILD_BINARY_DIR}/UseCTK.cmake)# Library directory.SET(CTK_LIBRARY_DIRS_CONFIG ${LIBRARY_OUTPUT_PATH})# Runtime library directory.SET(CTK_RUNTIME_LIBRARY_DIRS_CONFIG ${LIBRARY_OUTPUT_PATH})# Binary executable directory.SET(CTK_EXECUTABLE_DIRS_CONFIG ${EXECUTABLE_OUTPUT_PATH})# QtDesigner plugins directorySET(CTK_QTDESIGNERPLUGINS_DIR_CONFIG ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})# Determine the include directories needed.SET(CTK_INCLUDE_DIRS_CONFIG  ${CTK_BASE_INCLUDE_DIRS})# Executable locations.# CMake extension module directory.SET(CTK_CMAKE_DIR_CONFIG "${CTK_CMAKE_DIR}")SET(CTK_CMAKE_UTILITIES_DIR_CONFIG "${CTK_CMAKE_UTILITIES_DIR}")# Build configuration information.SET(CTK_CONFIGURATION_TYPES_CONFIG ${CMAKE_CONFIGURATION_TYPES})SET(CTK_BUILD_TYPE_CONFIG ${CMAKE_BUILD_TYPE})#-----------------------------------------------------------------------------# Configure CTKConfig.cmake for the build tree.CONFIGURE_FILE(${CTK_SOURCE_DIR}/CTKConfig.cmake.in               ${CTK_SUPERBUILD_BINARY_DIR}/CTKConfig.cmake @ONLY IMMEDIATE)CONFIGURE_FILE(${CTK_SOURCE_DIR}/CTKConfigVersion.cmake.in               ${CTK_SUPERBUILD_BINARY_DIR}/CTKConfigVersion.cmake @ONLY IMMEDIATE)#-----------------------------------------------------------------------------# Settings specific to the install tree.#-----------------------------------------------------------------------------# Configure CTKConfig.cmake for the install tree.
 |