diff --git a/CMakeLists.txt b/CMakeLists.txt index 1dbebd6d45..3d03a578cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -343,6 +343,8 @@ if (BUILD_TESTING) add_subdirectory(tests) endif() +add_subdirectory(examples) + if (KF6DocTools_FOUND) add_subdirectory(docs) endif() diff --git a/README.md b/README.md index 06e18e283b..16ddd2b6df 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This cross-desktop interoperability will be expanded upon in the future. **Ease of Use**
With The Compositor Modules a Wayland compositor can be created with a handful of lines only. -See our MVP [Minico](tests/minico) for an example of that. +See our MVP [Minico](examples/minico) for an example of that. **Customizability**
@@ -127,7 +127,7 @@ You can make use of the FDBuild tool to automate this process as described It's easiest to link via CMake to The Compositor Modules libraries that you want to make use of and then create their central platform types from your main function to launch the compositor session. -[Minico](tests/minico) as a minimal example and the [Plasma test binaries](tests/plasma) +[Minico](examples/minico) as a minimal example and the [Plasma test binaries](tests/plasma) as a more complex one demonstrate this in a straightforward way. # Contact diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000000..c1b6382b3a --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Roman Gilg +# SPDX-License-Identifier: GPL-2.0-or-later +add_subdirectory(minico) diff --git a/tests/minico/CMakeLists.txt b/examples/minico/CMakeLists.txt similarity index 100% rename from tests/minico/CMakeLists.txt rename to examples/minico/CMakeLists.txt diff --git a/tests/minico/README.md b/examples/minico/README.md similarity index 100% rename from tests/minico/README.md rename to examples/minico/README.md diff --git a/tests/minico/main.cpp b/examples/minico/main.cpp similarity index 100% rename from tests/minico/main.cpp rename to examples/minico/main.cpp diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 95ae8d97ae..18c4d66c68 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,7 +2,6 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -add_subdirectory(minico) add_subdirectory(plasma) set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp)