From 5f79a061c6331c010a3f7dc98498d0249774d37c Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Mon, 11 May 2009 22:28:26 +0000 Subject: 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 --- cpp/examples/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/examples') 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. -- cgit v1.2.1