Skip to content

Commit a7b8878

Browse files
committed
[cmake] Enumerate all source and include files.
1 parent aef7c59 commit a7b8878

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,26 @@ find_package(pugixml REQUIRED)
132132
# ============
133133

134134
set(XEUS_CPP_HEADERS
135+
include/xeus-cpp/xbuffer.hpp
135136
include/xeus-cpp/xeus_cpp_config.hpp
137+
include/xeus-cpp/xholder.hpp
136138
include/xeus-cpp/xinterpreter.hpp
139+
include/xeus-cpp/xmanager.hpp
140+
include/xeus-cpp/xmagics.hpp
141+
include/xeus-cpp/xoptions.hpp
142+
include/xeus-cpp/xpreamble.hpp
143+
#src/xdemangle.hpp
144+
#src/xinspect.hpp
145+
#src/xsystem.hpp
146+
#src/xparser.hpp
147+
#src/xmagics/os.hpp
137148
)
138149

139150
set(XEUS_CPP_SRC
140151
src/xholder.cpp
141152
src/xinput.cpp
142153
src/xinterpreter.cpp
154+
src/xmagics/os.cpp
143155
src/xoptions.cpp
144156
src/xparser.cpp
145157
src/xutils.cpp

src/xmagics/os.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515
#include "os.hpp"
1616
#include "../xparser.hpp"
1717

18-
#include "xeus-cpp/xoptions.hpp"
19-
2018
namespace xcpp
2119
{
22-
argparser writefile::get_options()
20+
static void get_options(argparser &argpars)
2321
{
24-
argparser argpars("file", XEUS_CLING_VERSION, argparse::default_arguments::none);
2522
argpars.add_description("write file");
2623
argpars.add_argument("-a", "--append").help("append").default_value(false).implicit_value(true);
2724
argpars.add_argument("filename").help("filename").required();
@@ -37,12 +34,12 @@ namespace xcpp
3734
.help("shows help message")
3835
.implicit_value(true)
3936
.nargs(0);
40-
return argpars;
4137
}
4238

4339
void writefile::operator()(const std::string& line, const std::string& cell)
4440
{
45-
auto argpars = get_options();
41+
argparser argpars("file", XEUS_CPP_VERSION, argparse::default_arguments::none);
42+
get_options(argpars);
4643
argpars.parse(line);
4744

4845
auto filename = argpars.get<std::string>("filename");

src/xmagics/os.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace xcpp
2020
{
2121
public:
2222

23-
argparser get_options();
2423
virtual void operator()(const std::string& line, const std::string& cell) override;
2524

2625
private:

0 commit comments

Comments
 (0)