Some attempt to compile it with new vala, failed
[gregoa/zavai.git] / src / CMakeLists.txt
1 project(zavai)
2 include(../vala.cmake)
3
4 set(zavai_version 0.1)
5
6 set(packages gtk+-2.0 gdk-pixbuf-2.0 dbus-glib-1>=0.80 libwnck-1.0>=2.26.0 libomhacks x11 gdk-x11-2.0 libgps gstreamer-0.10)
7 add_packages(ZAVAI ${packages})
8
9 set(VALA_PACKAGES x11 ${packages} posix linux-input dbus-extra gtkfisheyelist lua)
10 set(VFLAGS --vapidir=${zavai_SOURCE_DIR} --vapidir=${gtkfisheyelist_BINARY_DIR})
11 add_definitions(-Wall)
12 # -Werror 
13
14 #pkg_check_modules(DKP upower-glib>=0.9.9)
15 #if (DKP_VERSION)
16 #  message("-- Using upower-glib version ${DKP_VERSION}")
17 #  set(VFLAGS ${VFLAGS} --define=USE_DKP)
18 #  set(VALA_PACKAGES ${VALA_PACKAGES} upower-glib)
19 #  add_definitions(-DUSE_DKP ${DKP_CFLAGS})
20 #  link_libraries(${DKP_LDFLAGS})
21 #else()
22 #  message("-- Not using upower-glib")
23 #endif ()
24
25 add_definitions(-DWNCK_I_KNOW_THIS_IS_UNSTABLE -DI_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE -I${gtkfisheyelist_BINARY_DIR} -I${zavai_BINARY_DIR})
26 link_libraries(gtkfisheyelist-static)
27
28 file(GLOB zavala *.vala)
29 add_vala_program(zavai ${zavala})
30 add_executable(zavai ${zavai_CSOURCES})
31
32 install(TARGETS zavai RUNTIME DESTINATION bin)
33 install(FILES sat-monitor DESTINATION bin)