ENDFOREACH()
+#
+# Depulicate entries in DEAL_II_EXTERNAL_LIBRARIES(_...):
+#
+# Well, cmake has a bad habit of removing duplicate link library entries
+# from targets. It wouldn't be that harmful if cmake would do this from
+# behind... So, do it by hand to link correctly *sigh*
+#
+LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)
+LIST(REMOVE_DUPLICATES DEAL_II_EXTERNAL_LIBRARIES)
+LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES)
+FOREACH(build ${DEAL_II_BUILD_TYPES})
+ LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES_${build})
+ LIST(REMOVE_DUPLICATES DEAL_II_EXTERNAL_LIBRARIES_${build})
+ LIST(REVERSE DEAL_II_EXTERNAL_LIBRARIES_${build})
+ENDFOREACH()
+
#
# And print out a nice configuration summary:
# executables:
#
- #INCLUDE_DIRECTORIES(
- # ${CMAKE_SOURCE_DIR}/include/
- # ${CMAKE_BINARY_DIR}/include/
- # )
+ INCLUDE_DIRECTORIES(
+ ${CMAKE_SOURCE_DIR}/include/
+ ${CMAKE_BINARY_DIR}/include/
+ )
ADD_EXECUTABLE(make_dependencies make_dependencies.cc)
- #ADD_EXECUTABLE(report_features report_features.cc)
- #TARGET_LINK_LIBRARIES(report_features ${DEAL_II_EXTERNAL_LIBRARIES})
+ ADD_EXECUTABLE(report_features report_features.cc)
+ TARGET_LINK_LIBRARIES(report_features ${DEAL_II_EXTERNAL_LIBRARIES})
- INSTALL(TARGETS
- make_dependencies
- #report_features
- expand_instantiations
+ INSTALL(TARGETS make_dependencies report_features expand_instantiations
RUNTIME
DESTINATION common/scripts
COMPONENT compat_files