Add swaygrab subproject
This commit is contained in:
parent
27f03c705d
commit
7c04cd4fc8
|
@ -36,6 +36,7 @@ include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
add_subdirectory(swaybg)
|
add_subdirectory(swaybg)
|
||||||
add_subdirectory(swaymsg)
|
add_subdirectory(swaymsg)
|
||||||
|
add_subdirectory(swaygrab)
|
||||||
|
|
||||||
find_package(XKBCommon REQUIRED)
|
find_package(XKBCommon REQUIRED)
|
||||||
find_package(WLC REQUIRED)
|
find_package(WLC REQUIRED)
|
||||||
|
|
16
swaygrab/CMakeLists.txt
Normal file
16
swaygrab/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
project(swaygrab)
|
||||||
|
|
||||||
|
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(swaygrab
|
||||||
|
${sources}
|
||||||
|
${common}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
TARGETS swaygrab
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
COMPONENT runtime)
|
12
swaygrab/main.c
Normal file
12
swaygrab/main.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "log.h"
|
||||||
|
|
||||||
|
void sway_terminate(void) {
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, const char **argv) {
|
||||||
|
init_log(L_INFO);
|
||||||
|
sway_log(L_INFO, "Hello world!");
|
||||||
|
}
|
Loading…
Reference in a new issue