mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 15:36:29 +01:00
Add swaymsg subproject
This commit is contained in:
parent
206606b32c
commit
d69cbeabc0
3 changed files with 29 additions and 0 deletions
|
@ -33,7 +33,9 @@ string(TIMESTAMP CURRENT_DATE "%Y-%m-%d" UTC)
|
|||
add_definitions('-DSWAY_VERSION_DATE="${CURRENT_DATE}"')
|
||||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
|
||||
add_subdirectory(swaybg)
|
||||
add_subdirectory(swaymsg)
|
||||
|
||||
find_package(XKBCommon REQUIRED)
|
||||
find_package(WLC REQUIRED)
|
||||
|
|
16
swaymsg/CMakeLists.txt
Normal file
16
swaymsg/CMakeLists.txt
Normal file
|
@ -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)
|
11
swaymsg/main.c
Normal file
11
swaymsg/main.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue