Refactor leafValueFromValue

This function will be useful in other libyang enabled contexts.

Change-Id: Iae808d892be27749571f5086fac7af17290953e8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79dd345..ccf0aeb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -110,6 +110,7 @@
 
 add_library(yangschema STATIC
     src/yang_schema.cpp
+    src/libyang_utils.cpp
     )
 target_link_libraries(yangschema schemas ${LIBYANG_LIBRARIES})
 # Ensure that this doesn't override Boost's -isystem -- see the log for details.