~tintou/noise/noise-UPnP-plugin

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Corentin Noël
  • Date: 2013-06-02 22:39:51 UTC
  • Revision ID: tintou@mailoo.org-20130602223951-5pgyqq2z96jm5cdq
First draft of the UPnP/DLNA plugin for Noise

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
find_package (PkgConfig)
 
2
 
 
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)
 
5
 
 
6
add_definitions (${DEPS_CFLAGS})
 
7
link_libraries (${DEPS_LIBRARIES})
 
8
link_directories (${DEPS_LIBRARY_DIRS})
 
9
 
 
10
find_package (Vala REQUIRED)
 
11
include (ValaVersion)
 
12
ensure_vala_version ("0.14.0" MINIMUM)
 
13
 
 
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
 
17
    UPnP.vala
 
18
    UPnPDevice.vala
 
19
    UPnPDeviceManager.vala
 
20
    UPnPLibrary.vala
 
21
PACKAGES
 
22
    gtk+-3.0
 
23
    granite
 
24
    noise-core
 
25
    gupnp-1.0
 
26
    gupnp-av-1.0
 
27
    gssdp-1.0
 
28
OPTIONS
 
29
    --vapidir=${CMAKE_SOURCE_DIR}/vapi
 
30
    --target-glib=2.32
 
31
    --thread
 
32
)
 
33
 
 
34
add_library(${PLUGINNAME} MODULE ${VALA_C})
 
35
target_link_libraries(${PLUGINNAME} ${DEPS_LIBRARIES})
 
36
 
 
37
# Installation
 
38
install (TARGETS ${PLUGINNAME} DESTINATION ${PKGDATADIR})