forked from external/yambar
cmake: link i3-common against json and xcb-stuff
This commit is contained in:
parent
db211de70c
commit
272a1bd2ed
1 changed files with 5 additions and 4 deletions
|
@ -38,12 +38,13 @@ if (NOT I3_IPC_H)
|
|||
message(FATAL_ERROR "cannot find header file: i3/ipc.h")
|
||||
endif ()
|
||||
add_library(i3-common STATIC EXCLUDE_FROM_ALL i3-common.c i3-common.h)
|
||||
target_link_libraries(i3-common PkgConfig::json)
|
||||
if (ENABLE_X11)
|
||||
target_link_libraries(i3-common xcb-stuff)
|
||||
endif ()
|
||||
|
||||
add_library(i3 ${lib_type} i3.c)
|
||||
target_link_libraries(i3 module-sdk i3-common dynlist PkgConfig::json)
|
||||
if (ENABLE_X11)
|
||||
target_link_libraries(i3 xcb-stuff)
|
||||
endif ()
|
||||
target_link_libraries(i3 module-sdk i3-common dynlist)
|
||||
list(APPEND enabled i3)
|
||||
|
||||
add_library(label ${lib_type} label.c)
|
||||
|
|
Loading…
Add table
Reference in a new issue