1
set(PLUGINS_LIB_VERSION 0.1)
2
set(PLUGINS_LIB_SOVERSION 0)
3
set(PLUGINS_LIBRARY_NAME synapse-plugins)
11
pkg_check_modules(PLUGINS_DEPS REQUIRED ${PLUGINS_PKG})
15
desktop-file-plugin.vala
20
vala_precompile(PLUGINS_VALA_C ${PLUGINS_LIBRARY_NAME}
26
--vapidir=${CMAKE_BINARY_DIR}/lib/synapse-core
28
${PLUGINS_LIBRARY_NAME}
30
${PLUGINS_LIBRARY_NAME}
33
add_definitions(${PLUGINS_DEPS_CFLAGS} -include config.h -w)
34
link_directories(${PLUGINS_DEPS_LIBRARY_DIRS})
35
include_directories(${CMAKE_BINARY_DIR}/lib/synapse-core)
37
add_library(${PLUGINS_LIBRARY_NAME} STATIC ${PLUGINS_VALA_C})
39
set_target_properties(${PLUGINS_LIBRARY_NAME} PROPERTIES
40
OUTPUT_NAME ${PLUGINS_LIBRARY_NAME}
41
VERSION ${PLUGINS_LIB_VERSION}
42
SOVERSION ${PLUGINS_LIB_SOVERSION}
45
target_link_libraries (${PLUGINS_LIBRARY_NAME} ${PLUGINS_DEPS_LIBRARIES} synapse-core)