summaryrefslogtreecommitdiff
path: root/cpp/examples
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-05-11 22:28:26 +0000
committerStephen D. Huston <shuston@apache.org>2009-05-11 22:28:26 +0000
commit5f79a061c6331c010a3f7dc98498d0249774d37c (patch)
treeca1570be40bfaa3355231d9575c447e4c871a664 /cpp/examples
parent6ac75b539d14c1344cf00a696daec110d9710d00 (diff)
downloadqpid-python-5f79a061c6331c010a3f7dc98498d0249774d37c.tar.gz
Patch small probs building tests, examples on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@773714 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples')
-rw-r--r--cpp/examples/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/examples/CMakeLists.txt b/cpp/examples/CMakeLists.txt
index 3c906bd750..73931101bc 100644
--- a/cpp/examples/CMakeLists.txt
+++ b/cpp/examples/CMakeLists.txt
@@ -25,9 +25,15 @@ 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)
+
+# Shouldn't need this... but there are still client header inclusions of Boost.
include_directories( ${Boost_INCLUDE_DIR} )
link_directories( ${Boost_LIBRARY_DIRS} )
+if (MSVC)
+ add_definitions( /D "NOMINMAX" /D "WIN32_LEAN_AND_MEAN" )
+endif (MSVC)
+
# 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.