diff options
author | Brad King <brad.king@kitware.com> | 2001-03-20 18:20:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-03-20 18:20:59 (GMT) |
commit | 8c087d0e7a2045fead07d3069eefddfa4c515179 (patch) | |
tree | 3ea3acebf9283f281e5753a15968bd13c8558da2 /Source/cmCablePackageCommand.cxx | |
parent | 51ef865ef8c3b39e08ad627cb0effa35ca74955a (diff) | |
download | CMake-8c087d0e7a2045fead07d3069eefddfa4c515179.zip CMake-8c087d0e7a2045fead07d3069eefddfa4c515179.tar.gz CMake-8c087d0e7a2045fead07d3069eefddfa4c515179.tar.bz2 |
ENH: Added SOURCE_GROUP command and corresponding support code. This command allows CMakeLists files to specify how sources are organized into groups in the generated DSP files and makefiles.
Diffstat (limited to 'Source/cmCablePackageCommand.cxx')
-rw-r--r-- | Source/cmCablePackageCommand.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmCablePackageCommand.cxx b/Source/cmCablePackageCommand.cxx index 4c334a7..aca0612 100644 --- a/Source/cmCablePackageCommand.cxx +++ b/Source/cmCablePackageCommand.cxx @@ -60,17 +60,19 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args) // files. std::string command = "${CABLE}"; m_Makefile->ExpandVariablesInString(command); - std::vector<std::string> depends; + std::vector<std::string> depends; depends.push_back(command); command += " cable_config.xml"; - std::string packageFile = "Cxx/"+m_PackageName+"_cxx.cxx"; + std::vector<std::string> outputs; + outputs.push_back("Cxx/"+m_PackageName+"_cxx.cxx"); + outputs.push_back("Cxx/"+m_PackageName+"_cxx.h"); - // A rule for the package's source file. + // A rule for the package's source files. m_Makefile->AddCustomCommand("cable_config.xml", - packageFile.c_str(), command.c_str(), - depends); + depends, + outputs); return true; } |