2015-12-17 16:01:36 +01:00
|
|
|
include_directories(
|
|
|
|
${JSONC_INCLUDE_DIRS}
|
2016-03-24 23:01:07 +01:00
|
|
|
${WLC_INCLUDE_DIRS}
|
2016-04-28 20:08:41 +02:00
|
|
|
${XKBCOMMON_INCLUDE_DIRS}
|
2015-12-17 16:01:36 +01:00
|
|
|
)
|
|
|
|
|
2015-11-27 15:53:50 +01:00
|
|
|
add_executable(swaygrab
|
2015-12-02 06:57:53 +01:00
|
|
|
main.c
|
2016-09-18 23:41:08 +02:00
|
|
|
json.c
|
2015-11-27 15:53:50 +01:00
|
|
|
)
|
|
|
|
|
2015-12-01 20:05:46 +01:00
|
|
|
target_link_libraries(swaygrab
|
2015-12-02 06:57:53 +01:00
|
|
|
sway-common
|
2015-12-17 16:01:36 +01:00
|
|
|
${JSONC_LIBRARIES}
|
2015-12-01 20:46:10 +01:00
|
|
|
rt
|
2016-01-24 02:59:58 +01:00
|
|
|
m
|
2015-12-01 20:05:46 +01:00
|
|
|
)
|
2015-11-27 20:21:38 +01:00
|
|
|
|
2015-11-27 15:53:50 +01:00
|
|
|
install(
|
2015-12-01 20:46:10 +01:00
|
|
|
TARGETS swaygrab
|
|
|
|
RUNTIME
|
|
|
|
DESTINATION bin
|
|
|
|
COMPONENT runtime
|
2015-12-01 20:05:46 +01:00
|
|
|
)
|
2015-12-02 11:47:34 +01:00
|
|
|
|
2017-07-04 22:00:13 +02:00
|
|
|
if (A2X_FOUND)
|
|
|
|
add_manpage(swaygrab 1)
|
|
|
|
endif()
|