diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a7ce0e4..6cb82bd6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,7 +219,10 @@ custom_executable(simple_bridge "src/simple_bridge.cpp" ROS1_DEPENDENCIES TARGET_DEPENDENCIES "std_msgs") -add_library(${PROJECT_NAME} SHARED +if(NOT DEFINED BUILD_SHARED_LIBS) + set(BUILD_SHARED_LIBS ON) +endif() +add_library(${PROJECT_NAME} "src/builtin_interfaces_factories.cpp" "src/convert_builtin_interfaces.cpp" "src/bridge.cpp"