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