Register with network also on the PIN code path
[gregoa/zavai.git] / test / CMakeLists.txt
1 project(tests)
2 include(../vala.cmake)
3
4 set(packages gtk+-2.0 dbus-glib-1>=0.80 libwnck-1.0>=2.26.0 lua5.1 libomhacks x11 gdk-x11-2.0 libgps gstreamer-0.10)
5 add_packages(ZAVAI ${packages})
6
7 set(VALA_PACKAGES ${packages} posix linux-input dbus-extra gtkfisheyelist libzavai)
8 set(VFLAGS --vapidir=${gtkfisheyelist_BINARY_DIR} --vapidir=${libzavai_SOURCE_DIR} --vapidir=${libzavai_BINARY_DIR})
9 add_definitions(-Wall)
10 # -Werror 
11
12 pkg_check_modules(DKP devkit-power-gobject>=010)
13 if (DKP_VERSION)
14   message("-- Using devkit-power-gobject version ${DKP_VERSION}")
15   set(VFLAGS ${VFLAGS} --define=USE_DKP)
16   set(VALA_PACKAGES ${VALA_PACKAGES} devkit-power-gobject)
17   add_definitions(-DUSE_DKP ${DKP_CFLAGS})
18   link_libraries(${DKP_LDFLAGS})
19 else()
20   message("-- Not using devkit-power-gobject")
21 endif ()
22
23 set(VFLAGS ${VFLAGS} --vapidir=${zavai_BINARY_DIR})
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} -I${libzavai_BINARY_DIR})
26 set(VALA_PACKAGES ${VALA_PACKAGES} libzavai)
27 link_libraries(libzavai)
28
29 file(GLOB gsm-receive test-gsm-receive.vala)
30 add_vala_program(test-gsm-receive ${gsm-receive})
31 add_executable(test-gsm-receive ${test-gsm-receive_CSOURCES})