Skip to content

Commit

Permalink
Merge pull request #2 from jpetso/master
Browse files Browse the repository at this point in the history
Add public headers as dependencies to examples so they show up in IDEs.
  • Loading branch information
davidchappelle committed Jun 2, 2015
2 parents 1b9d0c5 + f2901f6 commit f83fe11
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
62 changes: 31 additions & 31 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,37 @@ find_package(Libmsgpack REQUIRED)
find_package(Threads REQUIRED)

set(PUBLIC_HEADERS
autobahn/autobahn.hpp
autobahn/exceptions.hpp
autobahn/wamp_arguments.hpp
autobahn/wamp_call.hpp
autobahn/wamp_call.ipp
autobahn/wamp_call_result.hpp
autobahn/wamp_call_result.ipp
autobahn/wamp_event.hpp
autobahn/wamp_event.ipp
autobahn/wamp_event_handler.hpp
autobahn/wamp_invocation.hpp
autobahn/wamp_invocation.ipp
autobahn/wamp_invocation_result.hpp
autobahn/wamp_invocation_result.ipp
autobahn/wamp_message.hpp
autobahn/wamp_message_type.hpp
autobahn/wamp_procedure.hpp
autobahn/wamp_publication.hpp
autobahn/wamp_publication.ipp
autobahn/wamp_register_request.hpp
autobahn/wamp_register_request.ipp
autobahn/wamp_registration.hpp
autobahn/wamp_registration.ipp
autobahn/wamp_session.hpp
autobahn/wamp_session.ipp
autobahn/wamp_subscribe_request.hpp
autobahn/wamp_subscribe_request.ipp
autobahn/wamp_subscription.hpp
autobahn/wamp_subscription.ipp
autobahn/wamp_unsubscribe_request.hpp
autobahn/wamp_unsubscribe_request.ipp)
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/autobahn.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/exceptions.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_arguments.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_call.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_call.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_call_result.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_call_result.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_event.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_event.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_event_handler.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_invocation.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_invocation.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_invocation_result.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_invocation_result.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_message.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_message_type.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_procedure.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_publication.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_publication.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_register_request.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_register_request.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_registration.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_registration.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_session.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_session.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_subscribe_request.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_subscribe_request.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_subscription.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_subscription.ipp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_unsubscribe_request.hpp
${CMAKE_CURRENT_SOURCE_DIR}/autobahn/wamp_unsubscribe_request.ipp)

foreach(h ${PUBLIC_HEADERS})
get_filename_component(HEADER_INCLUDE_DIRECTORY include/${h} DIRECTORY)
Expand Down
24 changes: 12 additions & 12 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ set(STDIO_SOURCES stdio.cpp)
set(SUBSCRIBE1_SOURCES subscribe1.cpp)
set(UNSUBSCRIBE1_SOURCES subscribe1.cpp)

add_executable(call1 ${CALL1_SOURCES})
add_executable(call1_uds ${CALL1_UDS_SOURCES})
add_executable(call2 ${CALL2_SOURCES})
add_executable(call3 ${CALL3_SOURCES})
add_executable(publish1 ${PUBLISH1_SOURCES})
add_executable(publish2 ${PUBLISH2_SOURCES})
add_executable(register1_cb ${REGISTER1_CB_SOURCES})
add_executable(register1 ${REGISTER1_SOURCES})
add_executable(register2 ${REGISTER2_SOURCES})
add_executable(stdio ${STDIO_SOURCES})
add_executable(subscribe1 ${SUBSCRIBE1_SOURCES})
add_executable(unsubscribe1 ${SUBSCRIBE1_SOURCES})
add_executable(call1 ${CALL1_SOURCES} ${PUBLIC_HEADERS})
add_executable(call1_uds ${CALL1_UDS_SOURCES} ${PUBLIC_HEADERS})
add_executable(call2 ${CALL2_SOURCES} ${PUBLIC_HEADERS})
add_executable(call3 ${CALL3_SOURCES} ${PUBLIC_HEADERS})
add_executable(publish1 ${PUBLISH1_SOURCES} ${PUBLIC_HEADERS})
add_executable(publish2 ${PUBLISH2_SOURCES} ${PUBLIC_HEADERS})
add_executable(register1_cb ${REGISTER1_CB_SOURCES} ${PUBLIC_HEADERS})
add_executable(register1 ${REGISTER1_SOURCES} ${PUBLIC_HEADERS})
add_executable(register2 ${REGISTER2_SOURCES} ${PUBLIC_HEADERS})
add_executable(stdio ${STDIO_SOURCES} ${PUBLIC_HEADERS})
add_executable(subscribe1 ${SUBSCRIBE1_SOURCES} ${PUBLIC_HEADERS})
add_executable(unsubscribe1 ${SUBSCRIBE1_SOURCES} ${PUBLIC_HEADERS})

0 comments on commit f83fe11

Please sign in to comment.