Commit 8d3b53ec authored by whitlocb's avatar whitlocb
Browse files

Generate VisItLibraryDependencies.cmake.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@10922 18c085ea-50e0-402c-830e-de6fd14e8384
parent 1a1c2459
......@@ -1404,6 +1404,46 @@ IF(NOT WIN32 AND IS_DIRECTORY ${VISIT_SOURCE_DIR}/../data)
ENDIF(VISIT_OUT_OF_SOURCE_BUILD)
ENDIF(NOT WIN32 AND IS_DIRECTORY ${VISIT_SOURCE_DIR}/../data)
#-----------------------------------------------------------------------------
# Create library dependencies file
#-----------------------------------------------------------------------------
EXPORT_LIBRARY_DEPENDENCIES(${VISIT_BINARY_DIR}/include/VisItLibraryDependencies.cmake.in)
INSTALL(CODE "
FUNCTION(FILTER_LIBRARY_DEPENDENCIES filename)
FILE(STRINGS \${filename}.in lines)
FILE(WRITE \${filename} \"# Filtered version\\n\")
FOREACH(line \${lines})
SET(outputLine TRUE)
IF(\"\${line}\" MATCHES \".*Plot[_ser|_par]*_LIB_DEPENDS.*\")
SET(outputLine FALSE)
ENDIF(\"\${line}\" MATCHES \".*Plot[_ser|_par]*_LIB_DEPENDS.*\")
IF(\"\${line}\" MATCHES \".*Operator[_ser|_par]*_LIB_DEPENDS.*\")
SET(outputLine FALSE)
ENDIF(\"\${line}\" MATCHES \".*Operator[_ser|_par]*_LIB_DEPENDS.*\")
IF(\"\${line}\" MATCHES \".*Database[_ser|_par]*_LIB_DEPENDS.*\")
SET(outputLine FALSE)
ENDIF(\"\${line}\" MATCHES \".*Database[_ser|_par]*_LIB_DEPENDS.*\")
FOREACH(suppress visit_writer visitfrontend visitmodule proxyexample bow slivrG slivrV air alan bane biff coil dye echo ell gage hest hoover limn mite moss nrrd push ten unrrdu)
IF(\"\${line}\" MATCHES \".*\${suppress}_LIB_DEPENDS.*\")
SET(outputLine FALSE)
ENDIF(\"\${line}\" MATCHES \".*\${suppress}_LIB_DEPENDS.*\")
ENDFOREACH(suppress)
IF(\${outputLine} STREQUAL \"TRUE\")
FILE(APPEND \${filename} \"\${line}\\n\")
ENDIF(\${outputLine} STREQUAL \"TRUE\")
ENDFOREACH(line)
ENDFUNCTION(FILTER_LIBRARY_DEPENDENCIES)
FILTER_LIBRARY_DEPENDENCIES(${VISIT_BINARY_DIR}/include/VisItLibraryDependencies.cmake)
")
INSTALL(FILES ${VISIT_BINARY_DIR}/include/VisItLibraryDependencies.cmake
DESTINATION ${VISIT_INSTALLED_VERSION_INCLUDE}
PERMISSIONS OWNER_READ OWNER_WRITE
GROUP_READ GROUP_WRITE
WORLD_READ
CONFIGURATIONS "";None;Debug;Release;RelWithDebInfo;MinSizeRel
)
#-----------------------------------------------------------------------------
# CPack -- This leverages our install targets to provide a "make package" that
......
......@@ -843,6 +843,7 @@ class CMakeGeneratorPlugin : public Plugin
}
out << "INCLUDE(" << visithome << "/include/PluginVsInstall.cmake)" << endl;
out << "INCLUDE(" << visithome << "/include/VisItLibraryDependencies.cmake)" << endl;
out << endl;
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment