Skip to content

Commit

Permalink
Pubsub targets linking against celix libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
rlenferink committed Feb 6, 2017
1 parent 51f0eb0 commit 45ecd64
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion celix-pubsub/pubsub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

celix_subproject(PUBSUB "Option to build the pubsub bundles" OFF)
celix_subproject(PUBSUB "Option to build the pubsub bundles" OFF DEPS UTILS)
if (PUBSUB)

include_directories("${PROJECT_SOURCE_DIR}/utils/public/include")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ bundle_files(org.apache.celix.pubsub_publisher.MpPublisher
${PROJECT_SOURCE_DIR}/pubsub/examples/keys/subscriber/public
DESTINATION "META-INF/keys/subscriber"
)

target_link_libraries(org.apache.celix.pubsub_publisher.MpPublisher celix_framework celix_utils)
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ bundle_files(org.apache.celix.pubsub_subscriber.MpSubscriber
${PROJECT_SOURCE_DIR}/pubsub/examples/keys/publisher/public
DESTINATION "META-INF/keys/publisher"
)

target_link_libraries(org.apache.celix.pubsub_subscriber.MpSubscriber celix_framework celix_utils)
2 changes: 2 additions & 0 deletions celix-pubsub/pubsub/examples/pubsub/publisher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ bundle_files(org.apache.celix.pubsub_publisher.PoiPublisher
${PROJECT_SOURCE_DIR}/pubsub/examples/keys/subscriber/public
DESTINATION "META-INF/keys/subscriber"
)

target_link_libraries(org.apache.celix.pubsub_publisher.PoiPublisher celix_framework celix_utils)
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ bundle_files(org.apache.celix.pubsub_publisher.PoiPublisher2
DESTINATION "META-INF/keys/subscriber"
)


target_link_libraries(org.apache.celix.pubsub_publisher.PoiPublisher2 celix_framework celix_utils)
2 changes: 2 additions & 0 deletions celix-pubsub/pubsub/examples/pubsub/subscriber/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ bundle_files(org.apache.celix.pubsub_subscriber.PoiSubscriber
${PROJECT_SOURCE_DIR}/pubsub/examples/keys/publisher/public
DESTINATION "META-INF/keys/publisher"
)

target_link_libraries(org.apache.celix.pubsub_subscriber.PoiSubscriber celix_framework celix_utils)
2 changes: 1 addition & 1 deletion celix-pubsub/pubsub/pubsub_admin_udp_mc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ add_bundle(org.apache.celix.pubsub_admin.PubSubAdminUdpMc
)

set_target_properties(org.apache.celix.pubsub_admin.PubSubAdminUdpMc PROPERTIES INSTALL_RPATH "$ORIGIN")
target_link_libraries(org.apache.celix.pubsub_admin.PubSubAdminUdpMc ${CELIX_LIBRARIES} ${JANSSON_LIBRARIES} ${SERIALIZER_LIBRARY})
target_link_libraries(org.apache.celix.pubsub_admin.PubSubAdminUdpMc celix_framework celix_utils celix_dfi ${JANSSON_LIBRARIES} ${SERIALIZER_LIBRARY})

install_bundle(org.apache.celix.pubsub_admin.PubSubAdminUdpMc)

2 changes: 1 addition & 1 deletion celix-pubsub/pubsub/pubsub_admin_zmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ add_bundle(org.apache.celix.pubsub_admin.PubSubAdmin
)

set_target_properties(org.apache.celix.pubsub_admin.PubSubAdmin PROPERTIES INSTALL_RPATH "$ORIGIN")
target_link_libraries(org.apache.celix.pubsub_admin.PubSubAdmin ${CELIX_LIBRARIES} ${ZMQ_LIBRARIES} ${CZMQ_LIBRARIES} ${JANSSON_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY} ${SERIALIZER_LIBRARY})
target_link_libraries(org.apache.celix.pubsub_admin.PubSubAdmin celix_framework celix_utils celix_dfi ${ZMQ_LIBRARIES} ${CZMQ_LIBRARIES} ${JANSSON_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY} ${SERIALIZER_LIBRARY})
install_bundle(org.apache.celix.pubsub_admin.PubSubAdmin)

3 changes: 1 addition & 2 deletions celix-pubsub/pubsub/pubsub_discovery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ add_bundle(org.apache.celix.pubsub_discovery.etcd.PubsubDiscovery
${PROJECT_SOURCE_DIR}/pubsub/pubsub_common/public/src/etcd.c
)

target_link_libraries(org.apache.celix.pubsub_discovery.etcd.PubsubDiscovery celix_framework celix_utils ${CURL_LIBRARIES} ${JANSSON_LIBRARIES})
install_bundle(org.apache.celix.pubsub_discovery.etcd.PubsubDiscovery)

target_link_libraries(org.apache.celix.pubsub_discovery.etcd.PubsubDiscovery ${CURL_LIBRARIES} ${JANSSON_LIBRARIES})
1 change: 1 addition & 0 deletions celix-pubsub/pubsub/pubsub_topology_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ bundle_files(org.apache.celix.pubsub_topology_manager.PubSubTopologyManager
DESTINATION "META-INF/"
)

target_link_libraries(org.apache.celix.pubsub_topology_manager.PubSubTopologyManager celix_framework celix_utils)
install_bundle(org.apache.celix.pubsub_topology_manager.PubSubTopologyManager)

0 comments on commit 45ecd64

Please sign in to comment.