ENDIF()
ENDIF()
+
+ #
+ # Get library name directly from the target:
+ #
+ GET_TARGET_PROPERTY(_lib ${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX} LOCATION)
+ GET_FILENAME_COMPONENT(CONFIG_LIBRARY_${_build} "${_lib}" NAME)
+
SET(CONFIG_LIBRARIES_${_build}
- ${MAKEFILE_LIBRARY_${_build}}
+ \${DEAL_II_PATH}/\${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${_build}}
${DEAL_II_EXTERNAL_LIBRARIES}
${DEAL_II_EXTERNAL_LIBRARIES_${_build}}
)
ENDFOREACH()
SET(CONFIG_INCLUDE_DIRS
- ${DEAL_II_INCLUDE_DIRS}
+ \${DEAL_II_PATH}/\${DEAL_II_INCLUDE_RELDIR}
+ \${DEAL_II_PATH}/\${DEAL_II_INCLUDE_RELDIR}/deal.II
+ \${DEAL_II_PATH}/\${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled
${DEAL_II_USER_INCLUDE_DIRS}
)
# mechanism actually understands:
TO_STRING_AND_ADD_PREFIX(MAKEFILE_INCLUDE_DIRS "${CMAKE_INCLUDE_FLAG_CXX}"
+ $(D)/${DEAL_II_INCLUDE_RELDIR}
+ $(D)/${DEAL_II_INCLUDE_RELDIR}/deal.II
+ $(D)/${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled
${DEAL_II_USER_INCLUDE_DIRS}
${DEAL_II_INCLUDE_DIRS}
)
)
TO_STRING(MAKEFILE_TARGETS_${build}
- ${MAKEFILE_LIBRARY_${build}}
+ $(D)/${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${build}}
${DEAL_II_EXTERNAL_LIBRARIES}
${DEAL_II_EXTERNAL_LIBRARIES_${build}}
)
# CMake...
#
FOREACH(_lib
- ${MAKEFILE_LIBRARY_${build}}
+ $(D)/${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${build}}
${DEAL_II_EXTERNAL_LIBRARIES}
${DEAL_II_EXTERNAL_LIBRARIES_${build}}
)
LIBS = @MAKEFILE_LIBS_RELEASE@
endif
-LIBDIR = @CMAKE_INSTALL_PREFIX@/@DEAL_II_LIBRARY_RELDIR@
+LIBDIR = $(D)/@DEAL_II_LIBRARY_RELDIR@
enable-threads = @MAKEFILE_enablethreads@
enable-shared = @MAKEFILE_enableshared@
# DEAL_II_DEBUG_SUFFIX *)
# DEAL_II_RELEASE_SUFFIX *)
#
-# DEAL_II_PATH *)
# DEAL_II_CMAKE_MACROS_RELDIR *)
# DEAL_II_DOCHTML_RELDIR *)
# DEAL_II_DOCREADME_RELDIR *)
# DEAL_II_LIBRARY_RELDIR *)
# DEAL_II_PROJECT_CONFIG_RELDIR *)
#
-# DEAL_II_INCLUDE_DIRS
-# DEAL_II_LIBRARY_DIRS
-#
# DEAL_II_BUILD_TYPES
# DEAL_II_WITH_BUNDLED_DIRECTORY
# DEAL_II_WITH_DOC_DIRECTORY
SET_IF_EMPTY(DEAL_II_DEBUG_SUFFIX ".g")
SET_IF_EMPTY(DEAL_II_RELEASE_SUFFIX "")
-SET(DEAL_II_PATH ${CMAKE_INSTALL_PREFIX})
-
IF(DEAL_II_COMPONENT_COMPAT_FILES)
#
# The good, old directory structure:
SET_IF_EMPTY(DEAL_II_PROJECT_CONFIG_RELDIR "${DEAL_II_LIBRARY_RELDIR}/cmake/${DEAL_II_PROJECT_CONFIG_NAME}")
ENDIF()
-LIST(APPEND DEAL_II_INCLUDE_DIRS
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_INCLUDE_RELDIR}"
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_INCLUDE_RELDIR}/deal.II"
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled"
- )
-
-LIST(APPEND DEAL_II_LIBRARY_DIRS
- "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}"
- )
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
LIST(APPEND DEAL_II_BUILD_TYPES "DEBUG")
DESTINATION ${DEAL_II_LIBRARY_RELDIR}
COMPONENT library
)
-
- #
- # Information for legacy Make.global_options
- #
- GET_TARGET_PROPERTY(lib ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} LOCATION)
- GET_FILENAME_COMPONENT(lib "${lib}" NAME)
- SET(MAKEFILE_LIBRARY_${build} "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}/${lib}" PARENT_SCOPE)
-
ENDFOREACH()
INSTALL(EXPORT ${DEAL_II_PROJECT_CONFIG_NAME}Targets