Revision 146281ca

View differences:

custompackages/hello-boost-graph/.idea/.name
1
hello-boost-graph
custompackages/hello-boost-graph/.idea/hello-boost-graph.iml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<module type="CPP_MODULE" version="4">
3
  <component name="NewModuleRootManager">
4
    <content url="file://$MODULE_DIR$">
5
      <sourceFolder url="file://$MODULE_DIR$/CMakeLists.txt" isTestSource="false" />
6
      <sourceFolder url="file://$MODULE_DIR$/src/hello-boost-graph.cpp" isTestSource="false" />
7
    </content>
8
    <orderEntry type="inheritedJdk" />
9
    <orderEntry type="sourceFolder" forTests="false" />
10
    <orderEntry type="module-library">
11
      <library name="Header Search Paths">
12
        <CLASSES>
13
          <root url="file:///usr/include" />
14
          <root url="file:///usr/lib/gcc/x86_64-linux-gnu/4.8/include" />
15
          <root url="file:///usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed" />
16
          <root url="file:///usr/local/boost" />
17
          <root url="file:///usr/local/include" />
18
        </CLASSES>
19
        <SOURCES>
20
          <root url="file:///usr/include" />
21
          <root url="file:///usr/lib/gcc/x86_64-linux-gnu/4.8/include" />
22
          <root url="file:///usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed" />
23
          <root url="file:///usr/local/boost" />
24
          <root url="file:///usr/local/include" />
25
        </SOURCES>
26
      </library>
27
    </orderEntry>
28
  </component>
29
</module>
custompackages/hello-boost-graph/.idea/misc.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project version="4">
3
  <component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
4
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
5
    <OptionsSetting value="true" id="Add" />
6
    <OptionsSetting value="true" id="Remove" />
7
    <OptionsSetting value="true" id="Checkout" />
8
    <OptionsSetting value="true" id="Update" />
9
    <OptionsSetting value="true" id="Status" />
10
    <OptionsSetting value="true" id="Edit" />
11
    <ConfirmationsSetting value="0" id="Add" />
12
    <ConfirmationsSetting value="0" id="Remove" />
13
  </component>
14
  <component name="ProjectRootManager" version="2" />
15
</project>
custompackages/hello-boost-graph/.idea/modules.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project version="4">
3
  <component name="ProjectModuleManager">
4
    <modules>
5
      <module fileurl="file://$PROJECT_DIR$/.idea/hello-boost-graph.iml" filepath="$PROJECT_DIR$/.idea/hello-boost-graph.iml" />
6
    </modules>
7
  </component>
8
</project>
custompackages/hello-boost-graph/.idea/vcs.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project version="4">
3
  <component name="VcsDirectoryMappings">
4
    <mapping directory="" vcs="" />
5
  </component>
6
</project>
custompackages/hello-boost-graph/.idea/workspace.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project version="4">
3
  <component name="CMakeRunConfigurationManager" shouldGenerate="true" assignedExecutableTargets="true" buildAllGenerated="true">
4
    <generated>
5
      <config projectName="hello_boost_graph" targetName="hello_boost_graph" />
6
    </generated>
7
  </component>
8
  <component name="CMakeSettings" AUTO_RELOAD="false" GENERATION_PASS_SYSTEM_ENVIRONMENT="true">
9
    <ADDITIONAL_GENERATION_ENVIRONMENT>
10
      <envs />
11
    </ADDITIONAL_GENERATION_ENVIRONMENT>
12
  </component>
13
  <component name="ChangeListManager">
14
    <list default="true" id="a148a548-a3b8-4565-89a8-24c02a8549d3" name="Default" comment="" />
15
    <ignored path="hello-boost-graph.iws" />
16
    <ignored path=".idea/workspace.xml" />
17
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
18
    <option name="TRACKING_ENABLED" value="true" />
19
    <option name="SHOW_DIALOG" value="false" />
20
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
21
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
22
    <option name="LAST_RESOLUTION" value="IGNORE" />
23
  </component>
24
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
25
  <component name="CreatePatchCommitExecutor">
26
    <option name="PATCH_PATH" value="" />
27
  </component>
28
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
29
  <component name="FavoritesManager">
30
    <favorites_list name="hello-boost-graph" />
31
  </component>
32
  <component name="FileEditorManager">
33
    <leaf>
34
      <file leaf-file-name="hello-boost-graph.cpp" pinned="false" current-in-tab="false">
35
        <entry file="file://$PROJECT_DIR$/src/hello-boost-graph.cpp">
36
          <provider selected="true" editor-type-id="text-editor">
37
            <state vertical-scroll-proportion="0.0">
38
              <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="21" />
39
              <folding>
40
                <element signature="e#0#53#0" expanded="true" />
41
              </folding>
42
            </state>
43
          </provider>
44
        </entry>
45
      </file>
46
      <file leaf-file-name="CMakeLists.txt" pinned="false" current-in-tab="true">
47
        <entry file="file://$PROJECT_DIR$/CMakeLists.txt">
48
          <provider selected="true" editor-type-id="text-editor">
49
            <state vertical-scroll-proportion="0.0">
50
              <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="26" selection-end-column="58" />
51
              <folding />
52
            </state>
53
          </provider>
54
        </entry>
55
      </file>
56
    </leaf>
57
  </component>
58
  <component name="IdeDocumentHistory">
59
    <option name="CHANGED_PATHS">
60
      <list>
61
        <option value="$PROJECT_DIR$/CMakeLists.txt" />
62
        <option value="$PROJECT_DIR$/src/hello-boost-graph.cpp" />
63
      </list>
64
    </option>
65
  </component>
66
  <component name="NamedScopeManager">
67
    <order />
68
  </component>
69
  <component name="ProjectFrameBounds">
70
    <option name="x" value="-1" />
71
    <option name="width" value="1368" />
72
    <option name="height" value="743" />
73
  </component>
74
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
75
    <OptionsSetting value="true" id="Add" />
76
    <OptionsSetting value="true" id="Remove" />
77
    <OptionsSetting value="true" id="Checkout" />
78
    <OptionsSetting value="true" id="Update" />
79
    <OptionsSetting value="true" id="Status" />
80
    <OptionsSetting value="true" id="Edit" />
81
    <ConfirmationsSetting value="0" id="Add" />
82
    <ConfirmationsSetting value="0" id="Remove" />
83
  </component>
84
  <component name="ProjectView">
85
    <navigator currentView="ProjectPane" proportions="" version="1">
86
      <flattenPackages />
87
      <showMembers />
88
      <showModules />
89
      <showLibraryContents />
90
      <hideEmptyPackages />
91
      <abbreviatePackageNames />
92
      <autoscrollToSource />
93
      <autoscrollFromSource />
94
      <sortByType />
95
    </navigator>
96
    <panes>
97
      <pane id="ProjectPane">
98
        <subPane>
99
          <PATH>
100
            <PATH_ELEMENT>
101
              <option name="myItemId" value="hello-boost-graph" />
102
              <option name="myItemType" value="com.jetbrains.cidr.projectView.CidrFilesViewHelper$MyProjectTreeStructure$1" />
103
            </PATH_ELEMENT>
104
          </PATH>
105
          <PATH>
106
            <PATH_ELEMENT>
107
              <option name="myItemId" value="hello-boost-graph" />
108
              <option name="myItemType" value="com.jetbrains.cidr.projectView.CidrFilesViewHelper$MyProjectTreeStructure$1" />
109
            </PATH_ELEMENT>
110
            <PATH_ELEMENT>
111
              <option name="myItemId" value="hello-boost-graph" />
112
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
113
            </PATH_ELEMENT>
114
          </PATH>
115
          <PATH>
116
            <PATH_ELEMENT>
117
              <option name="myItemId" value="hello-boost-graph" />
118
              <option name="myItemType" value="com.jetbrains.cidr.projectView.CidrFilesViewHelper$MyProjectTreeStructure$1" />
119
            </PATH_ELEMENT>
120
            <PATH_ELEMENT>
121
              <option name="myItemId" value="hello-boost-graph" />
122
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
123
            </PATH_ELEMENT>
124
            <PATH_ELEMENT>
125
              <option name="myItemId" value="src" />
126
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
127
            </PATH_ELEMENT>
128
          </PATH>
129
        </subPane>
130
      </pane>
131
    </panes>
132
  </component>
133
  <component name="PropertiesComponent">
134
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
135
    <property name="recentsLimit" value="5" />
136
    <property name="FullScreen" value="false" />
137
    <property name="full.screen.before.presentation.mode" value="false" />
138
  </component>
139
  <component name="RunManager" selected="Application.hello_boost_graph">
140
    <configuration default="true" type="CMakeRunConfiguration" factoryName="Application" PASS_PARENT_ENVS="FALSE" PROJECT_NAME="hello_boost_graph" TARGET_NAME="hello_boost_graph" CONFIG_NAME="Debug">
141
      <envs />
142
      <method />
143
    </configuration>
144
    <configuration default="false" name="Build All" type="CMakeRunConfiguration" factoryName="Application" PASS_PARENT_ENVS="FALSE" CONFIG_NAME="Debug" EXPLICIT_BUILD_TARGET_NAME="all">
145
      <envs />
146
      <method />
147
    </configuration>
148
    <configuration default="false" name="hello_boost_graph" type="CMakeRunConfiguration" factoryName="Application" PASS_PARENT_ENVS="FALSE" PROJECT_NAME="hello_boost_graph" TARGET_NAME="hello_boost_graph" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="hello_boost_graph" RUN_TARGET_NAME="hello_boost_graph">
149
      <envs />
150
      <method />
151
    </configuration>
152
    <list size="2">
153
      <item index="0" class="java.lang.String" itemvalue="Application.Build All" />
154
      <item index="1" class="java.lang.String" itemvalue="Application.hello_boost_graph" />
155
    </list>
156
  </component>
157
  <component name="ShelveChangesManager" show_recycled="false" />
158
  <component name="SvnConfiguration">
159
    <configuration />
160
  </component>
161
  <component name="TaskManager">
162
    <task active="true" id="Default" summary="Default task">
163
      <changelist id="a148a548-a3b8-4565-89a8-24c02a8549d3" name="Default" comment="" />
164
      <created>1446643654160</created>
165
      <option name="number" value="Default" />
166
      <updated>1446643654160</updated>
167
    </task>
168
    <servers />
169
  </component>
170
  <component name="ToolWindowManager">
171
    <frame x="-1" y="0" width="1368" height="743" extended-state="6" />
172
    <editor active="true" />
173
    <layout>
174
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.27818447" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
175
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
176
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32817337" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
177
      <window_info id="CMake" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32972136" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
178
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="9" side_tool="true" content_ui="tabs" />
179
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
180
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32817337" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
181
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
182
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
183
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
184
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
185
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
186
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
187
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
188
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
189
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
190
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
191
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
192
    </layout>
193
    <layout-to-restore>
194
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
195
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
196
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32972136" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
197
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
198
      <window_info id="CMake" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32972136" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
199
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
200
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="true" content_ui="tabs" />
201
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
202
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
203
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32972136" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
204
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
205
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.27859238" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
206
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
207
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
208
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
209
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
210
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
211
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
212
    </layout-to-restore>
213
  </component>
214
  <component name="Vcs.Log.UiProperties">
215
    <option name="RECENTLY_FILTERED_USER_GROUPS">
216
      <collection />
217
    </option>
218
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
219
      <collection />
220
    </option>
221
  </component>
222
  <component name="VcsContentAnnotationSettings">
223
    <option name="myLimit" value="2678400000" />
224
  </component>
225
  <component name="XDebuggerManager">
226
    <breakpoint-manager>
227
      <option name="time" value="1" />
228
    </breakpoint-manager>
229
    <watches-manager />
230
  </component>
231
  <component name="editorHistoryManager">
232
    <entry file="file://$PROJECT_DIR$/src/hello-boost-graph.cpp">
233
      <provider selected="true" editor-type-id="text-editor">
234
        <state vertical-scroll-proportion="0.0">
235
          <caret line="53" column="29" selection-start-line="53" selection-start-column="29" selection-end-line="53" selection-end-column="29" />
236
          <folding>
237
            <element signature="e#0#53#0" expanded="true" />
238
          </folding>
239
        </state>
240
      </provider>
241
    </entry>
242
    <entry file="file://$PROJECT_DIR$/src/hello-boost-graph.cpp">
243
      <provider selected="true" editor-type-id="text-editor">
244
        <state vertical-scroll-proportion="0.0">
245
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
246
          <folding>
247
            <element signature="e#0#53#0" expanded="true" />
248
          </folding>
249
        </state>
250
      </provider>
251
    </entry>
252
    <entry file="file://$PROJECT_DIR$/src/Makefile">
253
      <provider selected="true" editor-type-id="text-editor">
254
        <state vertical-scroll-proportion="0.0">
255
          <caret line="14" column="28" selection-start-line="0" selection-start-column="0" selection-end-line="14" selection-end-column="28" />
256
        </state>
257
      </provider>
258
    </entry>
259
    <entry file="file://$PROJECT_DIR$/src/hello-boost-graph.cpp">
260
      <provider selected="true" editor-type-id="text-editor">
261
        <state vertical-scroll-proportion="0.0">
262
          <caret line="21" column="29" selection-start-line="21" selection-start-column="29" selection-end-line="21" selection-end-column="29" />
263
          <folding>
264
            <element signature="e#0#53#0" expanded="true" />
265
          </folding>
266
        </state>
267
      </provider>
268
    </entry>
269
    <entry file="file://$PROJECT_DIR$/src/Makefile">
270
      <provider selected="true" editor-type-id="text-editor">
271
        <state vertical-scroll-proportion="0.0">
272
          <caret line="14" column="28" selection-start-line="0" selection-start-column="0" selection-end-line="14" selection-end-column="28" />
273
        </state>
274
      </provider>
275
    </entry>
276
    <entry file="file://$PROJECT_DIR$/CMakeLists.txt">
277
      <provider selected="true" editor-type-id="text-editor">
278
        <state vertical-scroll-proportion="0.0">
279
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
280
        </state>
281
      </provider>
282
    </entry>
283
    <entry file="file://$PROJECT_DIR$/src/Makefile">
284
      <provider selected="true" editor-type-id="text-editor">
285
        <state vertical-scroll-proportion="0.34035656">
286
          <caret line="14" column="28" selection-start-line="0" selection-start-column="0" selection-end-line="14" selection-end-column="28" />
287
        </state>
288
      </provider>
289
    </entry>
290
    <entry file="file://$PROJECT_DIR$/src/hello-boost-graph.cpp">
291
      <provider selected="true" editor-type-id="text-editor">
292
        <state vertical-scroll-proportion="0.0">
293
          <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="21" />
294
          <folding>
295
            <element signature="e#0#53#0" expanded="true" />
296
          </folding>
297
        </state>
298
      </provider>
299
    </entry>
300
    <entry file="file://$PROJECT_DIR$/CMakeLists.txt">
301
      <provider selected="true" editor-type-id="text-editor">
302
        <state vertical-scroll-proportion="0.0">
303
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="26" selection-end-column="58" />
304
          <folding />
305
        </state>
306
      </provider>
307
    </entry>
308
  </component>
309
</project>
custompackages/hello-boost-graph/CMakeLists.txt
1
cmake_minimum_required(VERSION 3.3)
2

  
3
set (PROJECT_NAME "hello_boost_graph" CXX)
4
project (${PROJECT_NAME})
5

  
6
# set (PROJECT_SOURCE_DECLARATION_DIRECTORY ${PROJECT_SOURCE_DIR}/include)
7
set (PROJECT_SOURCE_DEFINITION_DIRECTORY ${PROJECT_SOURCE_DIR}/src)
8
set (MAIN_FILE ${PROJECT_SOURCE_DEFINITION_DIRECTORY}/hello-boost-graph.cpp)
9

  
10
# set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
11

  
12
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
13

  
14
set (BOOST_ROOT "/usr/local/boost/")
15

  
16
find_package(Boost)
17
if(Boost_FOUND)
18
    include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
19
endif()
20

  
21
include_directories (${PROJECT_SOURCE_DECLARATION_DIRECTORY})
22

  
23
# "Add an executable to the project using the specified source files."
24
add_executable(${PROJECT_NAME} ${MAIN_FILE})
25

  
26
# "Link a target to given libraries."
27
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES})
28

  
custompackages/hello-boost-graph/Makefile
1
##############################################
2
# OpenWrt Makefile for hello-boost-graph program
3
#
4
#
5
# Most of the variables used here are defined in
6
# the include directives below. We just need to
7
# specify a basic description of the package,
8
# where to build our program, where to find
9
# the source files, and where to install the
10
# compiled program on the router.
11
#
12
# Be very careful of spacing in this file.
13
# Indents should be tabs, not spaces, and
14
# there should be no trailing whitespace in
15
# lines that are not commented.
16
#
17
##############################################
18

  
19
include $(TOPDIR)/rules.mk
20

  
21
# Name and release number of this package
22
PKG_NAME:=hello-boost-graph
23
PKG_RELEASE:=1
24

  
25
# This specifies the directory where we're going to build the program.
26
# The root build directory, $(BUILD_DIR), is by default the build_mipsel
27
# directory in your OpenWrt SDK directory
28
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
29

  
30

  
31
include $(INCLUDE_DIR)/package.mk
32

  
33

  
34
# Specify package information for this program.
35
# The variables defined here should be self explanatory.
36
define Package/hello-boost-graph
37
	SECTION:=utils
38
	CATEGORY:=Utilities
39
	TITLE:=Hello World for Boost Graph Library (BGL)
40
	MAINTAINER:=Quynh Nguyen <quynh.xq@gmail.com>
41
	DEPENDS:=+libstdcpp +boost +boost-graph
42
endef
43

  
44
define Package/hello-boost-graph/description
45
	A simple program to test Boost Graph Library
46
endef
47

  
48
# Specify what needs to be done to prepare for building the package.
49
# In our case, we need to copy the source files to the build directory.
50
# This is NOT the default.  The default uses the PKG_SOURCE_URL and the
51
# PKG_SOURCE which is not defined here to download the source from the web.
52
# In order to just build a simple program that we have just written, it is
53
# much easier to do it this way.
54
define Build/Prepare
55
	mkdir -p $(PKG_BUILD_DIR)
56
	$(CP) ./src/* $(PKG_BUILD_DIR)/
57
endef
58

  
59

  
60
# We do not need to define Build/Configure or Build/Compile directives
61
# The defaults are appropriate for compiling a simple program such as this one
62

  
63

  
64
# Specify where and how to install the program. Since we only have one file,
65
# the hello-boost-graph executable, install it by copying it to the /bin directory on
66
# the router. The $(1) variable represents the root directory on the router running
67
# OpenWrt. The $(INSTALL_DIR) variable contains a command to prepare the install
68
# directory if it does not already exist.  Likewise $(INSTALL_BIN) contains the
69
# command to copy the binary file from its current location (in our case the build
70
# directory) to the install directory.
71
define Package/hello-boost-graph/install
72
	$(INSTALL_DIR) $(1)/bin
73
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/hello-boost-graph $(1)/bin/
74
endef
75

  
76

  
77
# This line executes the necessary commands to compile our program.
78
# The above define directives specify all the information needed, but this
79
# line calls BuildPackage which in turn actually uses this information to
80
# build a package.
81
$(eval $(call BuildPackage,hello-boost-graph))
custompackages/hello-boost-graph/src/Makefile
1
##############################################
2
# Makefile for hello-boost-graph program
3
##############################################
4

  
5
hello-boost-graph: hello-boost-graph.o
6
	$(CXX) $(LDFLAGS) hello-boost-graph.o -o hello-boost-graph
7

  
8
hello-boost-graph.o: hello-boost-graph.cpp
9
	$(CXX) $(CXXFLAGS) -c hello-boost-graph.cpp $(LIBS)
10

  
11
# remove object files and executable when user executes "make clean"
12
clean:
13
	rm *.o hello-boost-graph
custompackages/hello-boost-graph/src/hello-boost-graph.cpp
1
#include <iostream>                  // for std::cout
2
#include <utility>                   // for std::pair
3
#include <algorithm>                 // for std::for_each
4
#include <boost/graph/graph_traits.hpp>
5
#include <boost/graph/adjacency_list.hpp>
6
#include <boost/graph/dijkstra_shortest_paths.hpp>
7

  
8
using namespace boost;
9

  
10
template <typename VertexDescriptor, typename VertexNameMap>
11
void print_vertex_name(VertexDescriptor v, VertexNameMap name_map)
12
{
13
    std::cout << get(name_map, v);
14
}
15

  
16
int main(int,char*[])
17
{
18
    // create a typedef for the Graph type
19
    typedef adjacency_list<vecS, vecS, bidirectionalS> Graph;
20

  
21
    // Make convenient labels for the vertices
22
    enum { A, B, C, D, E, N };
23
    const int num_vertices = N;
24
    const char* name = "ABCDE";
25

  
26
    // writing out the edges in the graph
27
    typedef std::pair<int, int> Edge;
28
    Edge edge_array[] =
29
    { Edge(A,B), Edge(A,D), Edge(C,A), Edge(D,C),
30
    Edge(C,E), Edge(B,D), Edge(D,E) };
31
    const int num_edges = sizeof(edge_array)/sizeof(edge_array[0]);
32

  
33
    // declare a graph object
34
    Graph g(num_vertices);
35

  
36
    // add the edges to the graph object
37
    for (int i = 0; i < num_edges; ++i)
38
    {
39
        add_edge(edge_array[i].first, edge_array[i].second, g);
40
    }
41

  
42
    // Accessing the Vertex Set
43

  
44
    // get the property map for vertex indices
45
    typedef property_map<Graph, vertex_index_t>::type IndexMap;
46
    IndexMap index = get(vertex_index, g);
47

  
48
    typedef graph_traits<Graph>::vertex_iterator vertex_iter;
49
    std::pair<vertex_iter, vertex_iter> vp;
50
    for (vp = vertices(g); vp.first != vp.second; ++vp.first)
51
        std::cout << index[*vp.first] <<  " ";
52
    std::cout << std::endl;
53

  
54
    // Accessing the Edge Set
55
    graph_traits<Graph>::edge_iterator ei, ei_end;
56
    for (tie(ei, ei_end) = edges(g); ei != ei_end; ++ei)
57
    {
58
        std::cout << "(" << index[source(*ei, g)]
59
                  << "," << index[target(*ei, g)] << ")";
60
    }
61
    std::cout << std::endl;
62

  
63
//    graph_traits<Graph>::vertex_iterator vi, vi_end;
64
//    for (tie(vi, vi_end) = vertices(G); vi != vi_end; ++vi)
65
//    {
66
//        std::cout << int(vi) << ' ';
67
//    }
68

  
69
//    for(Edge p = vertices(g); p.first != p.second; ++p.first)
70
//    {
71
//        std::cout << int(p.first) << ' ';
72
//    }
73

  
74
    return 0;
75
}

Also available in: Unified diff