2016-03-24 22:01:07 +00:00
|
|
|
include_directories(
|
|
|
|
${WLC_INCLUDE_DIRS}
|
2016-04-28 18:08:41 +00:00
|
|
|
${XKBCOMMON_INCLUDE_DIRS}
|
2016-03-24 22:01:07 +00:00
|
|
|
)
|
|
|
|
|
2016-04-28 18:13:26 +00:00
|
|
|
add_library(sway-common STATIC
|
2015-12-02 05:57:53 +00:00
|
|
|
ipc-client.c
|
|
|
|
list.c
|
|
|
|
log.c
|
2015-12-14 16:16:38 +00:00
|
|
|
util.c
|
2015-12-02 05:57:53 +00:00
|
|
|
readline.c
|
|
|
|
stringop.c
|
|
|
|
)
|
2015-12-21 23:32:41 +00:00
|
|
|
|
2016-07-30 23:50:13 +00:00
|
|
|
target_link_libraries(sway-common m)
|
|
|
|
|
2015-12-21 23:32:41 +00:00
|
|
|
if(Backtrace_FOUND)
|
|
|
|
set_target_properties(sway-common
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "-include ${Backtrace_HEADER}"
|
|
|
|
)
|
|
|
|
endif()
|