Conditional compilation based on presence or not of devkit-power
authorEnrico Zini <enrico@enricozini.org>
Fri, 18 Dec 2009 11:02:05 +0000 (11:02 +0000)
committerEnrico Zini <enrico@enricozini.org>
Fri, 18 Dec 2009 11:02:05 +0000 (11:02 +0000)
src/CMakeLists.txt

index 97341c409777d440e46e4a773ac94bb59759bbca..84c9438e52869cd6a457408bcd62e01a5e3c242a 100644 (file)
@@ -11,6 +11,14 @@ set(VFLAGS --vapidir=${zavai_SOURCE_DIR} --vapidir=${gtkfisheyelist_BINARY_DIR})
 add_definitions(-Wall)
 # -Werror 
 
+if (ZAVAI_devkit-power-gobject_VERSION)
+  message("Using devkit-power-gobject")
+  add_definitions(-DUSE_DKP)
+  set(VFLAGS ${VFLAGS} --define=USE_DKP)
+else()
+  message("Not using devkit-power-gobject")
+endif ()
+
 file(GLOB libvala [a-y]*.vala widgets/*.vala)
 add_vala_library(libzavai ${libvala})
 add_library(libzavai STATIC ${libzavai_CSOURCES})