11 std::string
CMakeSourceListGenerator::GenerateCMakeFile(
const std::string& groupName,
const std::vector<std::string>& stateXMLFiles,
const std::vector<std::string>& stateSourceFiles,
const std::vector<std::string>& stateHeaderFiles,
const std::vector<std::string>& libs)
15 writer.
line(
"SET(HEADERS ${HEADERS}");
16 for (
auto& file : stateXMLFiles)
22 writer.
line(
"SET(HEADERS ${HEADERS}");
23 for (
auto& file : stateHeaderFiles)
29 writer.
line(
"SET(SOURCES ${SOURCES}");
30 for (
auto& file : stateSourceFiles)
37 writer.
line(
"SET(COMPONENT_LIBS ${COMPONENT_LIBS}");
38 for (
auto& file : libs)
48 std::string
CMakeSourceListGenerator::GenerateCMakeFileNextGen(
const std::string& groupName,
const std::vector<std::string>& stateXMLFiles,
const std::vector<std::string>& stateSourceFiles,
const std::vector<std::string>& stateHeaderFiles,
const std::vector<std::string>& libs)
52 writer.
line(
"armarx_add_statechart_library(" + groupName +
"_statechart");
55 if(not stateHeaderFiles.empty())
57 writer.
line(
"HEADERS", 1);
59 for (
const auto& file : stateHeaderFiles)
65 writer.
line(
"STATE_FILES", 1);
66 for (
const auto& file : stateXMLFiles)
72 if(not stateSourceFiles.empty())
74 writer.
line(
"SOURCES", 1);
75 for (
const auto& file : stateSourceFiles)
82 writer.
line(
"DEPENDENCIES", 1);
83 for (
const auto& file : libs)
89 if(stateSourceFiles.empty())
91 writer.
line(
"INTERFACE", 1);
96 writer.
line(
"OBJECT", 1);