RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}"
)
- IF("${CMAKE_VERSION}" VERSION_GREATER "3.0")
- #
- # Populate the full target interface variables for newer cmake
- # versions:
- #
-
- SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
- PROPERTY INTERFACE_INCLUDE_DIRECTORIES
- $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include/>
- $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include/>
- # cmake correctly calculates an install prefix relative to
- # ${DEAL_II_PROJECT_CONFIG_RELDIR}!
- $<INSTALL_INTERFACE:${DEAL_II_INCLUDE_RELDIR}>
- )
- IF(NOT "${DEAL_II_BUNDLED_INCLUDE_DIRS}" STREQUAL "")
- SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
- APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
- $<BUILD_INTERFACE:${DEAL_II_BUNDLED_INCLUDE_DIRS}>
- $<INSTALL_INTERFACE:${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled>
- )
- ENDIF()
- SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
- APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
- ${DEAL_II_USER_INCLUDE_DIRS}
- )
-
- SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
- PROPERTY INTERFACE_COMPILE_DEFINITIONS
- ${DEAL_II_DEFINITIONS}
- ${DEAL_II_DEFINITIONS_${build}}
- )
-
-
- # FIXME: There is no INTERFACE_LINK_FLAGS yet... *sigh*
-
- SET(_flags "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${build}}")
- SET(_flags "${_flags} ${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${build}}")
- SEPARATE_ARGUMENTS(_flags)
- SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
- PROPERTY INTERFACE_COMPILE_OPTIONS ${_flags}
- )
- ENDIF()
-
IF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
PROPERTIES