aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-28 18:23:49 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-28 18:23:49 -0400
commit28736c578701393f35cac2bd2ad49de18d7f879e (patch)
treed00c341f078b38972d26a9269c83b9fabac0c496 /examples/CMakeLists.txt
parent18e6ddc1c5b091a66113ecf0d761a37980882ce3 (diff)
Move example -> examples
And the compositor example into its own directory
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt79
1 files changed, 79 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..956ea886
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,79 @@
+include_directories(
+ ${DRM_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${XKBCOMMON_INCLUDE_DIRS}
+)
+
+add_executable(simple
+ simple.c
+ shared.c
+)
+
+target_link_libraries(simple
+ wlr-backend
+ wlr-session
+ ${XKBCOMMON_LIBRARIES}
+)
+
+add_executable(rotation
+ rotation.c
+ shared.c
+ cat.c
+)
+
+target_link_libraries(rotation
+ wlr-backend
+ wlr-session
+ wlr-render
+ ${XKBCOMMON_LIBRARIES}
+)
+
+add_executable(pointer
+ pointer.c
+ shared.c
+ cat.c
+)
+
+target_link_libraries(pointer
+ wlr-backend
+ wlr-session
+ wlr-render
+ ${XKBCOMMON_LIBRARIES}
+)
+
+add_executable(touch
+ touch.c
+ shared.c
+ cat.c
+)
+
+target_link_libraries(touch
+ wlr-backend
+ wlr-session
+ wlr-render
+ ${XKBCOMMON_LIBRARIES}
+)
+
+add_executable(tablet
+ tablet.c
+ shared.c
+)
+
+target_link_libraries(tablet
+ wlr-backend
+ wlr-session
+ wlr-render
+ ${XKBCOMMON_LIBRARIES}
+)
+
+add_executable(compositor
+ compositor/main.c
+ shared.c
+)
+
+target_link_libraries(compositor
+ wlr-backend
+ wlr-session
+ wlr-render
+ ${XKBCOMMON_LIBRARIES}
+)