Forgot to add file
authorEnrico Zini <enrico@enricozini.org>
Fri, 26 Mar 2010 13:43:39 +0000 (13:43 +0000)
committerEnrico Zini <enrico@enricozini.org>
Fri, 26 Mar 2010 13:43:39 +0000 (13:43 +0000)
zavai/CMakeLists.txt [new file with mode: 0644]

diff --git a/zavai/CMakeLists.txt b/zavai/CMakeLists.txt
new file mode 100644 (file)
index 0000000..76f8252
--- /dev/null
@@ -0,0 +1,32 @@
+project(libzavai)
+include(../vala.cmake)
+
+set(zavai_version 0.1)
+
+set(packages dbus-glib-1>=0.80 lua5.1 libomhacks x11 gdk-x11-2.0 libgps gstreamer-0.10)
+add_packages(LIBZAVAI ${packages})
+
+set(VALA_PACKAGES ${packages} posix linux-input dbus-extra)
+set(VFLAGS --vapidir=${libzavai_SOURCE_DIR})
+add_definitions(-Wall)
+# -Werror 
+
+pkg_check_modules(DKP devkit-power-gobject>=010)
+if (DKP_VERSION)
+  message("-- Using devkit-power-gobject version ${DKP_VERSION}")
+  set(VFLAGS ${VFLAGS} --define=USE_DKP)
+  set(VALA_PACKAGES ${VALA_PACKAGES} devkit-power-gobject)
+  add_definitions(-DUSE_DKP ${DKP_CFLAGS})
+  link_libraries(${DKP_LDFLAGS})
+else()
+  message("-- Not using devkit-power-gobject")
+endif ()
+
+file(GLOB libvala [a-y]*.vala)
+add_vala_library(libzavai ${libvala})
+add_library(libzavai STATIC ${libzavai_CSOURCES})
+
+set_target_properties(libzavai PROPERTIES VERSION ${zavai_version} SOVERSION 0 OUTPUT_NAME "zavai" CLEAN_DIRECT_OUTPUT 1)
+
+add_definitions(-I${zavai_BINARY_DIR})
+set(VFLAGS ${VFLAGS} --vapidir=${zavai_BINARY_DIR})