particle/dynlist: compile as a shared library

This commit is contained in:
Daniel Eklöf 2019-01-13 21:43:56 +01:00
parent 1cce649f06
commit 2f83ed1fc3
3 changed files with 7 additions and 4 deletions

View file

@ -34,8 +34,6 @@ add_executable(f00bar
tag.c tag.h
xcb.c xcb.h
yml.c yml.h
particles/dynlist.c particles/dynlist.h
)
# Make global symbols in f00bar visible to dlopen:ed plugins

View file

@ -31,7 +31,7 @@ pkg_check_modules(JSON REQUIRED json-c)
add_library(i3 MODULE i3.c)
target_compile_options(i3 PRIVATE ${JSON_CFLAGS_OTHER})
target_include_directories(i3 PRIVATE ${JSON_INCLUDE_DIRS})
target_link_libraries(i3 module-sdk ${JSON_LIBRARIES})
target_link_libraries(i3 module-sdk dynlist ${JSON_LIBRARIES})
add_library(label MODULE label.c)
target_link_libraries(label module-sdk)
@ -48,7 +48,7 @@ target_link_libraries(network module-sdk)
add_library(removables MODULE removables.c)
target_compile_options(removables PRIVATE ${UDEV_CFLAGS_OTHER})
target_include_directories(removables PRIVATE ${UDEV_INCLUDE_DIRS})
target_link_libraries(removables module-sdk ${UDEV_LIBRARIES})
target_link_libraries(removables module-sdk dynlist ${UDEV_LIBRARIES})
pkg_check_modules(XCB_XKB REQUIRED xcb-xkb)
add_library(xkb MODULE xkb.c)

View file

@ -4,6 +4,9 @@ add_library(particle-sdk INTERFACE)
target_compile_options(particle-sdk INTERFACE ${CAIRO_CFLAGS_OTHER})
target_include_directories(particle-sdk INTERFACE ${CAIRO_INCLUDE_DIRS})
add_library(dynlist SHARED dynlist.c dynlist.h)
target_link_libraries(dynlist particle-sdk)
set(CMAKE_SHARED_MODULE_PREFIX particle_)
add_library(empty MODULE empty.c)
@ -33,4 +36,6 @@ install(
ramp
string
dynlist
DESTINATION lib/f00bar)