Răsfoiți Sursa

ENH: Added Cable to Utilities and appropriate CMakeLists.txt changes. Moved VXLNumerics link out of source's root directory and into separate entries for Code and Testing directories. This prevents linking of all programs (like Cable) with the numerics library.

Brad King 25 ani în urmă
părinte
comite
8f6468f9f2
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      Source/cmCableCommand.cxx

+ 7 - 0
Source/cmCableCommand.cxx

@@ -71,4 +71,11 @@ void cmCableCommand::SetupCableData()
   std::string pathName = m_Makefile->GetStartOutputDirectory();
   std::string pathName = m_Makefile->GetStartOutputDirectory();
   pathName += "/cable_config.xml";
   pathName += "/cable_config.xml";
   m_CableData = new cmCableData(this, pathName);
   m_CableData = new cmCableData(this, pathName);
+  
+  std::vector<string> depends;
+  depends.push_back("cable_config.xml");
+  m_Makefile->AddCustomCommand("source_cable_config.xml",
+                               "result_file",
+                               "cable cable_config.xml",
+                               depends);
 }
 }