diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a00252da414ee2532b732a49621f5be595cadfd..2c71f48daa65a0b282415a63e95fb5ea53f7e18e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ project(wolf_ros_imu)
 ## Compile as C++14
 add_compile_options(-std=c++14) 
 # -fPIC and -rdynamic ensure unique singleton instance across shared libraries (for factories) see: https://stackoverflow.com/a/8626922
-SET(CMAKE_CXX_FLAGS "-fPIC -rdynamic")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -rdynamic")
 
 ## Find catkin macros and libraries
 ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
@@ -52,11 +52,13 @@ add_library(publisher_${PROJECT_NAME}
 target_link_libraries(subscriber_${PROJECT_NAME}
             wolfcore
             wolfimu
+            ${catkin_LIBRARIES}
             ${sensor_msgs_LIBRARIES}
             )
 
 target_link_libraries(publisher_${PROJECT_NAME}
             wolfcore
             wolfimu
+            ${catkin_LIBRARIES}
             ${sensor_msgs_LIBRARIES}
             )
\ No newline at end of file