git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30554
0785d39b-7218-0410-832d-
ea1e28bc413d
MACRO(EXPAND_INSTANTIATIONS _target _inst_in_files)
IF(CMAKE_CROSSCOMPILING)
- SET(_ei_exec native-expand_instantiations)
+ SET(_ei_exec exported-expand_instantiations)
ELSE()
SET(_ei_exec expand_instantiations)
ENDIF()
# Export expand_instantiations for use in cross compilation:
#
EXPORT(TARGETS expand_instantiations
- FILE ${CMAKE_CURRENT_BINARY_DIR}/importExecutables.cmake
- NAMESPACE native- # Prefix a namespace
+ FILE ${CMAKE_BINARY_DIR}/importExecutables.cmake
+ NAMESPACE exported- # Prefix a namespace
)
ENDIF()
SET(DEAL_II_NATIVE "DEAL_II_NATIVE-NOTFOUND" CACHE FILEPATH
"A pointer to a native deal.Ii build directory"
)
- INCLUDE(${DEAL_II_NATIVE}/cmake/scripts/importExecutables.cmake)
+ INCLUDE(${DEAL_II_NATIVE}/importExecutables.cmake)
ENDIF()
+
+
+#
+# Cleanup importTargets.cmake
+#
+FILE(REMOVE
+ ${CMAKE_BINARY_DIR}/importTargets.cmake
+ )
${DEAL_II_EXTERNAL_LIBRARIES}
)
+ EXPORT(TARGETS ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
+ NAMESPACE exported- # Prefix a namespace
+ FILE ${CMAKE_BINARY_DIR}/importTargets.cmake
+ APPEND
+ )
+
INSTALL(TARGETS ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
EXPORT ${DEAL_II_PROJECT_CONFIG_NAME}Targets
DESTINATION ${DEAL_II_LIBRARY_RELDIR}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams