diff --git a/trunk/src/examples/CMakeLists.txt b/trunk/src/examples/CMakeLists.txt
index 4e01fdd8a89d816662e7d3d024f5f3ab8fb48aa9..48bc0bbdd9ea7ad2baea2e7142aa0fb13b2764b7 100644
--- a/trunk/src/examples/CMakeLists.txt
+++ b/trunk/src/examples/CMakeLists.txt
@@ -4,3 +4,8 @@ ADD_EXECUTABLE(test_usb_i2c test_usb_i2c.cpp)
 # edit the following line to add the necessary libraries
 TARGET_LINK_LIBRARIES(test_usb_i2c usb_i2c_adapter ${iriutils_LIBRARY} ${comm_LIBRARY})
 
+# edit the following line to add the source code for the example and the name of the executable
+ADD_EXECUTABLE(test_battery battery_test.cpp)
+
+# edit the following line to add the necessary libraries
+TARGET_LINK_LIBRARIES(test_battery usb_i2c_adapter ${iriutils_LIBRARY} ${comm_LIBRARY})