OPTION(DEAL_II_WITH_MPI
"Build deal.II with support for mpi."
- OFF)
+ ON)
OPTION(DEAL_II_WITH_NETCDF
"Build deal.II with support for netcdf."
# Now, configure a lot of things:
#
-# used as a dummy target for all the stuff that has to be done before the
+# Used as a dummy target for all the stuff that has to be done before the
# library can be compiled:
ADD_CUSTOM_TARGET(deal_ii_target_dependencies)
-# used to keep track of external libraries and necessary linker flags
+# Used to keep track of external libraries and necessary linker flags
SET(deal_ii_external_libraries "")
-SET(deal_ii_external_debug_libraries "")
SET(deal_ii_required_linker_flags "")
#
ENDIF()
+# And finally convert deal_ii_required_linker_flags from a list into a
+# string *sigh*
+# TODO: Encapsulate in a macro...
+SET(deal_ii_required_linker_flags_list ${deal_ii_required_linker_flags})
+SET(deal_ii_required_linker_flags "")
+FOREACH (arg ${deal_ii_required_linker_flags_list})
+ SET(deal_ii_required_linker_flags "${deal_ii_required_linker_flags} ${arg}")
+ENDFOREACH()
#
# Compile the deal.II library
#
+
#
# Each subdirectory specifies an OBJECT target:
#
ADD_SUBDIRECTORY(multigrid)
ADD_SUBDIRECTORY(numerics)
+
#
# Combine all OBJECT targets to a shared library:
#
${deal_ii_additional_object_files}
)
+
#
-# Sonaming: Well... we just use the version number. No point to wrack
-# one's brain over the question whether a C++ library is still ABI
-# backwards compatible.
+# Sonaming: Well... we just use the version number.
+# No point to wrack one's brain over the question whether a C++ library is
+# still ABI backwards compatible.
#
SET_TARGET_PROPERTIES(deal_II PROPERTIES
VERSION ${VERSION}
SOVERSION ${VERSION}
)
-TARGET_LINK_LIBRARIES(deal_II ${deal_ii_required_linker_flags} ${deal_ii_external_libraries}) # TODO
+SET_TARGET_PROPERTIES(deal_II PROPERTIES
+ LINK_FLAGS "${deal_ii_required_linker_flags}"
+ )
+
+
+TARGET_LINK_LIBRARIES(deal_II ${deal_ii_external_libraries})