RIC-851: Updated rmr to define messagetype
[ric-plt/lib/rmr.git] / src / rmr / common / CMakeLists.txt
index efd8480..7b9ebf3 100644 (file)
@@ -21,6 +21,7 @@
 
 add_library( common_objects OBJECT 
        src/symtab.c
+       src/logging.c
        src/mbuf_api.c
        src/wrapper.c
 )
@@ -30,10 +31,13 @@ target_include_directories (common_objects PUBLIC
        $<INSTALL_INTERFACE:include>
        PRIVATE src)
 
-# we have to force headers to install
-install( FILES 
-       include/rmr.h
-       include/rmr_symtab.h
-       include/RIC_message_types.h
-       DESTINATION ${install_root}/${install_inc}
-)      
+# we have to force headers to install, and only if we are generating a development package
+if( DEV_PKG )
+       install( FILES 
+               include/rmr.h
+               include/rmr_symtab.h
+               include/rmr_logging.h
+               include/RIC_message_types.h
+               DESTINATION ${install_inc}
+       )       
+endif()