aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-11-26 12:41:24 -0500
committerDrew DeVault <sir@cmpwn.com>2015-11-26 12:41:24 -0500
commitd69cbeabc0d0f59847e0118f61ad7e4d76fc95e4 (patch)
treecdb01ed4a7a89c25b7018d8cb939369b74d3ceeb /swaymsg
parent206606b32cd6bd9c6d6d83ff02d49b1d3c7e0b18 (diff)
Add swaymsg subproject
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/CMakeLists.txt16
-rw-r--r--swaymsg/main.c11
2 files changed, 27 insertions, 0 deletions
diff --git a/swaymsg/CMakeLists.txt b/swaymsg/CMakeLists.txt
new file mode 100644
index 00000000..79af0f3e
--- /dev/null
+++ b/swaymsg/CMakeLists.txt
@@ -0,0 +1,16 @@
+project(swaymsg)
+
+set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
+
+FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
+FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
+
+add_executable(swaymsg
+ ${sources}
+ ${common}
+)
+
+install(
+ TARGETS swaymsg
+ RUNTIME DESTINATION bin
+ COMPONENT runtime)
diff --git a/swaymsg/main.c b/swaymsg/main.c
new file mode 100644
index 00000000..824af0e6
--- /dev/null
+++ b/swaymsg/main.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+void sway_terminate(void) {
+ exit(1);
+}
+
+int main(int argc, const char **argv) {
+ printf("Hello world!");
+ return 0;
+}