Author: shuston
Date: Fri May  8 20:37:07 2009
New Revision: 773091

URL: http://svn.apache.org/viewvc?rev=773091&view=rev
Log:
Add examples building to cmake build

Added:
    qpid/trunk/qpid/cpp/examples/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt   (with props)
    qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt   (with props)
Modified:
    qpid/trunk/qpid/cpp/CMakeLists.txt

Modified: qpid/trunk/qpid/cpp/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/CMakeLists.txt?rev=773091&r1=773090&r2=773091&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/CMakeLists.txt Fri May  8 20:37:07 2009
@@ -35,7 +35,6 @@
 add_subdirectory(src)
 # add_subdirectory(docs/api)
 # add_subdirectory(docs/man)
-#add_subdirectory(examples)
 
 # if (WIN32)
 #    do something Microsoft specific
@@ -45,3 +44,5 @@
 install(FILES  LICENSE NOTICE README SSL RELEASE_NOTES DESIGN
                xml/cluster.xml INSTALL-WINDOWS
         DESTINATION .)
+
+add_subdirectory(examples)

Added: qpid/trunk/qpid/cpp/examples/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/CMakeLists.txt Fri May  8 20:37:07 2009
@@ -0,0 +1,51 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+project(qpidc_examples)
+cmake_minimum_required(VERSION 2.4.0 FATAL_ERROR)
+if(COMMAND cmake_policy)
+  cmake_policy(SET CMP0003 NEW)
+endif(COMMAND cmake_policy)
+
+# This will probably need some fiddling to get right for installed kits.
+get_directory_property(QPIDC_TOP PARENT_DIRECTORY)
+include_directories(${QPIDC_TOP}/src ${QPIDC_TOP}/src/gen)
+
+# There are numerous duplicate names within the examples. Since all target
+# names must be unique, define a macro to prepend a prefix and manage the
+# actual names.
+# There can be an optional arguments at the end: libs to include
+macro(add_example subdir example)
+  add_executable(${subdir}_${example} ${example}.cpp)
+  set_target_properties(${subdir}_${example} PROPERTIES OUTPUT_NAME ${example})
+  if (${ARGC} GREATER 2)
+    target_link_libraries(${subdir}_${example} ${ARGN} qpidclient)
+  else (${ARGC} GREATER 2)
+    target_link_libraries(${subdir}_${example} qpidclient)
+  endif (${ARGC} GREATER 2)
+endmacro(add_example)
+
+add_subdirectory(direct)
+add_subdirectory(failover)
+add_subdirectory(fanout)
+add_subdirectory(pub-sub)
+#add_subdirectory(qmf-agent)
+add_subdirectory(qmf-console)
+add_subdirectory(request-response)
+add_subdirectory(tradedemo)
+add_subdirectory(xml-exchange)

Propchange: qpid/trunk/qpid/cpp/examples/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt Fri May  8 20:37:07 2009
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(direct declare_queues)
+add_example(direct direct_producer)
+add_example(direct listener)

Propchange: qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/direct/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt Fri May  8 20:37:07 
2009
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(failover declare_queues)
+add_example(failover resuming_receiver)
+add_example(failover replaying_sender)

Propchange: qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/failover/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt Fri May  8 20:37:07 2009
@@ -0,0 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(fanout fanout_producer)
+add_example(fanout listener)

Propchange: qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/fanout/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt Fri May  8 20:37:07 2009
@@ -0,0 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(pub_sub topic_listener)
+add_example(pub_sub topic_publisher)

Propchange: qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/pub-sub/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: 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=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt Fri May  8 20:37:07 
2009
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(console console qmfconsole)
+add_example(console printevents qmfconsole)
+add_example(console ping qmfconsole)
+add_example(console queuestats qmfconsole)

Propchange: qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/qmf-console/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt Fri May  8 
20:37:07 2009
@@ -0,0 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(request-response client)
+add_example(request-response server)

Propchange: qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/request-response/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt Fri May  8 20:37:07 
2009
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(tradedemo topic_listener)
+add_example(tradedemo topic_publisher)
+add_example(tradedemo declare_queues)

Propchange: qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/tradedemo/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt?rev=773091&view=auto
==============================================================================
--- qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt (added)
+++ qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt Fri May  8 
20:37:07 2009
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_example(xml-exchange declare_queues)
+add_example(xml-exchange xml_producer)
+add_example(xml-exchange listener)

Propchange: qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: qpid/trunk/qpid/cpp/examples/xml-exchange/CMakeLists.txt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to