Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cpp/Manual/printer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.16)

project(manual_printer CXX)

include(../../cmake/common.cmake)

add_executable(client Client.cpp Printer.ice)
slice2cpp_generate(client)
target_link_libraries(client Ice::Ice)

add_executable(server Server.cpp Printer.ice)
slice2cpp_generate(server)
target_link_libraries(server Ice::Ice)
33 changes: 29 additions & 4 deletions cpp/Manual/printer/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
# Manual Printer

This demo implements the printer example in the Ice Manual.

To run it, start the server in a window:
To build the demo run:

```shell
cmake -B build
cmake --build build --config Release
```

To run the demo, first start the server:

**Linux/macOS:**

```shell
./build/server
```
server

**Windows:**

```shell
build\Release\server
```

In a separate window, run the client:
In a separate window, start the client:

**Linux/macOS:**

```shell
./build/client
```
client

**Windows:**

```shell
build\Release\client
```
13 changes: 13 additions & 0 deletions cpp/Manual/simpleFilesystem/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.16)

project(manual_simpleFilesystem CXX)

include(../../cmake/common.cmake)

add_executable(client Client.cpp Filesystem.ice)
slice2cpp_generate(client)
target_link_libraries(client Ice::Ice)

add_executable(server Server.cpp FilesystemI.cpp FilesystemI.h Filesystem.ice)
slice2cpp_generate(server)
target_link_libraries(server Ice::Ice)
3 changes: 2 additions & 1 deletion cpp/Manual/simpleFilesystem/FilesystemI.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) ZeroC, Inc.

#include <FilesystemI.h>
#include "FilesystemI.h"

#include <Ice/Ice.h>

using namespace std;
Expand Down
33 changes: 29 additions & 4 deletions cpp/Manual/simpleFilesystem/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,39 @@
# Manual Simple Filesystem

This demo implements the simple filesystem application shown at the
end of the client and server C++ mapping chapters.

To run it, start the server in a window:
To build the demo run:

```shell
cmake -B build
cmake --build build --config Release
```

To run the demo, first start the server:

**Linux/macOS:**

```shell
./build/server
```
server

**Windows:**

```shell
build\Release\server
```

Then run the client in a separate window:
In a separate window, start the client:

**Linux/macOS:**

```shell
./build/client
```
client

**Windows:**

```shell
build\Release\client
```