added check header so cmake will fail if you are missing libwebsockets
authorKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 22 Aug 2012 21:20:57 +0000 (14:20 -0700)
committerMichael Carpenter <malcom2073@gmail.com>
Thu, 23 Aug 2012 09:51:23 +0000 (05:51 -0400)
plugins/dbus/CMakeLists.txt
plugins/dbus/dbusplugin.h
plugins/websocketsink/CMakeLists.txt

index a688c79..07464f3 100644 (file)
@@ -3,8 +3,8 @@ include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
 
 pkg_check_modules(gio REQUIRED gio-2.0)
 
-set(dbussinkplugin_headers dbusplugin.h abstractproperty.h abstractdbusinterface.h dbusinterfacemanager.h accelerationproperty.h basicproperty.h)
-set(dbussinkplugin_sources dbusplugin.cpp abstractproperty.cpp abstractdbusinterface.cpp dbusinterfacemanager.cpp accelerationproperty.cpp basicproperty.cpp)
+set(dbussinkplugin_headers dbusplugin.h abstractproperty.h abstractdbusinterface.h dbusinterfacemanager.h accelerationproperty.h basicproperty.h properties.h)
+set(dbussinkplugin_sources dbusplugin.cpp abstractproperty.cpp abstractdbusinterface.cpp dbusinterfacemanager.cpp accelerationproperty.cpp basicproperty.cpp properties.cpp)
 
 add_library(dbussinkplugin MODULE ${dbussinkplugin_sources})
 set_target_properties(dbussinkplugin PROPERTIES PREFIX "")
index abb7416..8007ec4 100644 (file)
@@ -35,6 +35,12 @@ public:
        virtual std::string uuid();
 
 protected:
+       template <typename T>
+       void wantProperty(VehicleProperty::Property)
+       {
+
+       }
+
        PropertyDBusMap propertyDBusMap;
 };
 
index 2aac74c..eb1284b 100644 (file)
@@ -1,6 +1,8 @@
-
+include(CheckIncludeFiles)
 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
 
+check_include_files(libwebsockets.h HAVE_WEBSOCKETS)
+
 set(websocketsinkplugin_headers websocketsink.h websocketmanager.h)
 set(websocketsinkplugin_sources websocketsinkmanager.cpp websocketsink.cpp)
 add_library(websocketsinkplugin MODULE ${websocketsinkplugin_sources})