1
find_package (PkgConfig)
3
# Add all your dependencies to the list below
4
pkg_check_modules (DEPS REQUIRED gthread-2.0 gtk+-3.0 pantheon granite noise-core gupnp-1.0 gupnp-av-1.0 gssdp-1.0)
6
add_definitions (${DEPS_CFLAGS})
7
link_libraries (${DEPS_LIBRARIES})
8
link_directories (${DEPS_LIBRARY_DIRS})
10
find_package (Vala REQUIRED)
12
ensure_vala_version ("0.14.0" MINIMUM)
14
include (ValaPrecompile)
15
# Add all your vala files and requires packages to the List below to include them in the build
16
vala_precompile (VALA_C
19
UPnPDeviceManager.vala
29
--vapidir=${CMAKE_SOURCE_DIR}/vapi
34
add_library(${PLUGINNAME} MODULE ${VALA_C})
35
target_link_libraries(${PLUGINNAME} ${DEPS_LIBRARIES})
38
install (TARGETS ${PLUGINNAME} DESTINATION ${PKGDATADIR})