Skip to content

Commit 46d4ced

Browse files
Added missing project code
1 parent 2de91ab commit 46d4ced

File tree

36 files changed

+6156
-0
lines changed

36 files changed

+6156
-0
lines changed

CapturingThisWithLambdas/.cproject

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

CapturingThisWithLambdas/.project

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>CapturingThisWithLambdas@CapturingThisWithLambdas</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.make.core.makeBuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
<dictionary>
13+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
14+
<value>clean</value>
15+
</dictionary>
16+
<dictionary>
17+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
18+
<value>true</value>
19+
</dictionary>
20+
<dictionary>
21+
<key>org.eclipse.cdt.make.core.append_environment</key>
22+
<value>true</value>
23+
</dictionary>
24+
<dictionary>
25+
<key>org.eclipse.cdt.make.core.stopOnError</key>
26+
<value>true</value>
27+
</dictionary>
28+
<dictionary>
29+
<key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>
30+
<value>true</value>
31+
</dictionary>
32+
<dictionary>
33+
<key>org.eclipse.cdt.make.core.build.command</key>
34+
<value>/usr/bin/make</value>
35+
</dictionary>
36+
<dictionary>
37+
<key>org.eclipse.cdt.make.core.contents</key>
38+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
39+
</dictionary>
40+
<dictionary>
41+
<key>org.eclipse.cdt.make.core.build.target.inc</key>
42+
<value>all</value>
43+
</dictionary>
44+
<dictionary>
45+
<key>org.eclipse.cdt.make.core.build.arguments</key>
46+
<value>-j4</value>
47+
</dictionary>
48+
<dictionary>
49+
<key>org.eclipse.cdt.make.core.buildLocation</key>
50+
<value>/Users/johnpurcell/Documents/cpp/advanced-cplusplus/CapturingThisWithLambdas</value>
51+
</dictionary>
52+
<dictionary>
53+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
54+
<value>false</value>
55+
</dictionary>
56+
<dictionary>
57+
<key>org.eclipse.cdt.make.core.environment</key>
58+
<value>VERBOSE=1|CMAKE_NO_VERBOSE=1|</value>
59+
</dictionary>
60+
<dictionary>
61+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
62+
<value>true</value>
63+
</dictionary>
64+
<dictionary>
65+
<key>org.eclipse.cdt.make.core.build.target.auto</key>
66+
<value>all</value>
67+
</dictionary>
68+
<dictionary>
69+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
70+
<value>false</value>
71+
</dictionary>
72+
<dictionary>
73+
<key>org.eclipse.cdt.make.core.build.target.clean</key>
74+
<value>clean</value>
75+
</dictionary>
76+
<dictionary>
77+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
78+
<value>all</value>
79+
</dictionary>
80+
<dictionary>
81+
<key>org.eclipse.cdt.make.core.buildArguments</key>
82+
<value></value>
83+
</dictionary>
84+
<dictionary>
85+
<key>org.eclipse.cdt.make.core.build.location</key>
86+
<value>/Users/johnpurcell/Documents/cpp/advanced-cplusplus/CapturingThisWithLambdas</value>
87+
</dictionary>
88+
<dictionary>
89+
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
90+
<value>all</value>
91+
</dictionary>
92+
<dictionary>
93+
<key>org.eclipse.cdt.core.errorOutputParser</key>
94+
<value>org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;</value>
95+
</dictionary>
96+
</arguments>
97+
</buildCommand>
98+
<buildCommand>
99+
<name>org.eclipse.cdt.make.core.ScannerConfigBuilder</name>
100+
<arguments>
101+
</arguments>
102+
</buildCommand>
103+
</buildSpec>
104+
<natures>
105+
<nature>org.eclipse.cdt.make.core.makeNature</nature>
106+
<nature>org.eclipse.cdt.make.core.ScannerConfigNature</nature>
107+
<nature>org.eclipse.cdt.core.ccnature</nature>
108+
<nature>org.eclipse.cdt.core.cnature</nature>
109+
</natures>
110+
<linkedResources>
111+
<link>
112+
<name>[Subprojects]</name>
113+
<type>2</type>
114+
<locationURI>virtual:/virtual</locationURI>
115+
</link>
116+
<link>
117+
<name>[Targets]</name>
118+
<type>2</type>
119+
<locationURI>virtual:/virtual</locationURI>
120+
</link>
121+
<link>
122+
<name>[Targets]/[exe] CapturingThisWithLambdas</name>
123+
<type>2</type>
124+
<locationURI>virtual:/virtual</locationURI>
125+
</link>
126+
<link>
127+
<name>[Targets]/[exe] CapturingThisWithLambdas/</name>
128+
<type>2</type>
129+
<locationURI>virtual:/virtual</locationURI>
130+
</link>
131+
<link>
132+
<name>[Targets]/[exe] CapturingThisWithLambdas/Source Files</name>
133+
<type>2</type>
134+
<locationURI>virtual:/virtual</locationURI>
135+
</link>
136+
<link>
137+
<name>[Targets]/[exe] CapturingThisWithLambdas/Source Files/main.cpp</name>
138+
<type>1</type>
139+
<location>/Users/johnpurcell/Documents/cpp/advanced-cplusplus/CapturingThisWithLambdas/src/main.cpp</location>
140+
</link>
141+
<link>
142+
<name>[Targets]/[exe] CapturingThisWithLambdas/Header Files</name>
143+
<type>2</type>
144+
<locationURI>virtual:/virtual</locationURI>
145+
</link>
146+
<link>
147+
<name>[Targets]/[exe] CapturingThisWithLambdas/CMake Rules</name>
148+
<type>2</type>
149+
<locationURI>virtual:/virtual</locationURI>
150+
</link>
151+
<link>
152+
<name>[Targets]/[exe] CapturingThisWithLambdas/Resources</name>
153+
<type>2</type>
154+
<locationURI>virtual:/virtual</locationURI>
155+
</link>
156+
<link>
157+
<name>[Targets]/[exe] CapturingThisWithLambdas/Object Files</name>
158+
<type>2</type>
159+
<locationURI>virtual:/virtual</locationURI>
160+
</link>
161+
</linkedResources>
162+
</projectDescription>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
2+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
3+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
4+
5+
set (CMAKE_CXX_STANDARD 11)
6+
cmake_minimum_required(VERSION 3.0)
7+
8+
get_filename_component(ProjectId ${CMAKE_CURRENT_SOURCE_DIR} NAME)
9+
string(REPLACE " " "_" ProjectId ${ProjectId})
10+
11+
project(${ProjectId})
12+
13+
file(GLOB project_sources src/*.cpp)
14+
file(GLOB project_headers src/*.h src/*.hpp)
15+
16+
add_executable(${ProjectId} ${project_sources} ${project_headers})

CapturingThisWithLambdas/src/main.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//============================================================================
2+
// Name :
3+
// Author : John Purcell
4+
// Version :
5+
// Copyright : Your copyright notice
6+
// Description : Hello World in C++, Ansi-style
7+
//============================================================================
8+
9+
#include <iostream>
10+
11+
using namespace std;
12+
13+
int main() {
14+
cout << "Hello World" << endl;
15+
16+
return 0;
17+
}

0 commit comments

Comments
 (0)