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