You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by sh...@apache.org on 2011/12/09 23:44:40 UTC
svn commit: r1212672 - in /qpid/trunk/qpid/cpp/examples: CMakeLists.txt
qmf-console/CMakeLists.txt
Author: shuston
Date: Fri Dec 9 22:44:40 2011
New Revision: 1212672
URL: http://svn.apache.org/viewvc?rev=1212672&view=rev
Log:
Don't install C++ examples we don't want users basing their learning on any longer. Fixes QPID-3673.
Modified:
qpid/trunk/qpid/cpp/examples/CMakeLists.txt
qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt
Modified: qpid/trunk/qpid/cpp/examples/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/CMakeLists.txt?rev=1212672&r1=1212671&r2=1212672&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/examples/CMakeLists.txt Fri Dec 9 22:44:40 2011
@@ -63,6 +63,11 @@ macro(add_example subdir example)
target_link_libraries(${subdir}_${example} qpidclient
${_boost_libs_needed})
endif (${ARGC} GREATER 2)
+endmacro(add_example)
+
+macro(add_installed_example subdir example)
+ add_example(${subdir} ${example} ${ARGN})
+
# For installs, don't install the built example; that would be pointless.
# Install the things a user needs to build the example on-site.
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${example}.cpp
@@ -74,7 +79,7 @@ macro(add_example subdir example)
COMPONENT ${QPID_COMPONENT_EXAMPLES})
endif (MSVC)
-endmacro(add_example)
+endmacro(add_installed_example)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.txt
DESTINATION ${QPID_INSTALL_EXAMPLESDIR}
Modified: qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt?rev=1212672&r1=1212671&r2=1212672&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt Fri Dec 9 22:44:40 2011
@@ -17,7 +17,7 @@
# under the License.
#
-add_example(qmf-console console qmfconsole)
-add_example(qmf-console printevents qmfconsole)
-add_example(qmf-console ping qmfconsole)
-add_example(qmf-console queuestats qmfconsole)
+add_installed_example(qmf-console console qmfconsole)
+add_installed_example(qmf-console printevents qmfconsole)
+add_installed_example(qmf-console ping qmfconsole)
+add_installed_example(qmf-console queuestats qmfconsole)
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org