aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--swaymsg/CMakeLists.txt16
-rw-r--r--swaymsg/main.c11
3 files changed, 29 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e61946b..bf94ca88 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,7 +33,9 @@ string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC)
33add_definitions('-DSWAY_VERSION_DATE="${CURRENT_DATE}"') 33add_definitions('-DSWAY_VERSION_DATE="${CURRENT_DATE}"')
34 34
35include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include") 35include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
36
36add_subdirectory(swaybg) 37add_subdirectory(swaybg)
38add_subdirectory(swaymsg)
37 39
38find_package(XKBCommon REQUIRED) 40find_package(XKBCommon REQUIRED)
39find_package(WLC REQUIRED) 41find_package(WLC REQUIRED)
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 @@
1project(swaymsg)
2
3set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
4
5FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
6FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
7
8add_executable(swaymsg
9 ${sources}
10 ${common}
11)
12
13install(
14 TARGETS swaymsg
15 RUNTIME DESTINATION bin
16 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 @@
1#include <stdio.h>
2#include <stdlib.h>
3
4void sway_terminate(void) {
5 exit(1);
6}
7
8int main(int argc, const char **argv) {
9 printf("Hello world!");
10 return 0;
11}